mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-10 20:02:21 +02:00
The new parameter to urlopen is "context" not "ctx"
This commit is contained in:
parent
ced39d019f
commit
fd4fa9097f
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def request_registration(user, password, server_location, shared_secret):
|
|||
if sys.version_info[:3] >= (2, 7, 9):
|
||||
# As of version 2.7.9, urllib2 now checks SSL certs
|
||||
import ssl
|
||||
f = urllib2.urlopen(req, ctx=ssl.SSLContext(ssl.PROTOCOL_SSLv23))
|
||||
f = urllib2.urlopen(req, context=ssl.SSLContext(ssl.PROTOCOL_SSLv23))
|
||||
else:
|
||||
f = urllib2.urlopen(req)
|
||||
f.read()
|
||||
|
|
Loading…
Reference in a new issue