diff options
author | Cory Benfield <lukasaoz@gmail.com> | 2016-01-26 12:56:02 +0000 |
---|---|---|
committer | Cory Benfield <lukasaoz@gmail.com> | 2016-01-26 12:56:02 +0000 |
commit | 1fa14c59e1e9b451d5d1baa0e70aca604f0efea5 (patch) | |
tree | 8a479221e12cd4f445b97219565ed3e8f4ae54d2 | |
parent | 792d0ace4f84023d1132f8d61a88bd48e3d7775d (diff) | |
download | urllib3-1fa14c59e1e9b451d5d1baa0e70aca604f0efea5.tar.gz |
Set literals don't exist in Python 2.6
-rw-r--r-- | urllib3/contrib/pyopenssl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urllib3/contrib/pyopenssl.py b/urllib3/contrib/pyopenssl.py index 5f191645..83bef991 100644 --- a/urllib3/contrib/pyopenssl.py +++ b/urllib3/contrib/pyopenssl.py @@ -189,7 +189,7 @@ class WrappedSocket(object): # Copy-pasted from Python 3.5 source code def makefile(self, mode="r", buffering=None, encoding=None, errors=None, newline=None): - if not set(mode) <= {"r", "w", "b"}: + if not set(mode) <= set(["r", "w", "b"]): raise ValueError( "invalid mode %r (only r, w, b allowed)" % (mode,) ) |