summary refs log tree commit diff
path: root/register_new_matrix_user
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-04-17 14:44:31 +0100
committerMark Haines <mark.haines@matrix.org>2015-04-17 14:44:31 +0100
commitfd4fa9097f4ea593a0896377ff5179397ffa94d7 (patch)
treed8e95d7f4cf7d16e0b51b114de9af69284630412 /register_new_matrix_user
parentBump version (diff)
downloadsynapse-fd4fa9097f4ea593a0896377ff5179397ffa94d7.tar.xz
The new parameter to urlopen is "context" not "ctx"
Diffstat (limited to '')
-rwxr-xr-xregister_new_matrix_user2
1 files changed, 1 insertions, 1 deletions
diff --git a/register_new_matrix_user b/register_new_matrix_user
index 974dfd3981..4a520bdb5d 100755
--- a/register_new_matrix_user
+++ b/register_new_matrix_user
@@ -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()