Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
The new parameter to urlopen is "context" not "ctx"
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Haines committed Apr 17, 2015
1 parent ced39d0 commit fd4fa90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion register_new_matrix_user
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fd4fa90

Please sign in to comment.