Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

patched_urlopen is not needed anymore

  • Loading branch information...
commit a03f9b7389b896358d6435b9869c039b46f1b43d 1 parent fd528a9
@ametaireau ametaireau authored
Showing with 1 addition and 15 deletions.
  1. +1 −0  CHANGES.txt
  2. +0 −15 browserid/tests/support.py
View
1  CHANGES.txt
@@ -3,6 +3,7 @@
* add support of requests rather than custom code for ssl checking when
retrieving certificates.
+ * removed patch utility for secure_urlopen (we are now using requests)
0.4.0 - 2012-03-13
==================
View
15 browserid/tests/support.py
@@ -147,21 +147,6 @@ def make_assertion(email, audience, issuer=None, exp=None,
@contextmanager
-def patched_urlopen(replacement=None, exc=None, value=None):
- def _urlopen(*args, **kwargs):
- if exc is not None:
- raise exc
- return value
- if replacement is None:
- replacement = _urlopen
- old_urlopen = (certificates.secure_urlopen, remote.secure_urlopen)
- certificates.secure_urlopen = replacement
- remote.secure_urlopen = replacement
- yield
- certificates.secure_urlopen, remote.secure_urlopen = old_urlopen
-
-
-@contextmanager
def patched_key_fetching(replacement=None, exc=None):
"""Patch the key fetching mechanism with the given callable.

0 comments on commit a03f9b7

Please sign in to comment.
Something went wrong with that request. Please try again.