diff --git a/register_new_matrix_user b/register_new_matrix_user
index 974dfd3981caec5b857ffee12b2f93900bd307c5..4a520bdb5d1d79faf03a3a4c92f5d78f60d3ea8d 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()