summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Benfield <lukasaoz@gmail.com>2016-01-26 12:56:02 +0000
committerCory Benfield <lukasaoz@gmail.com>2016-01-26 12:56:02 +0000
commit1fa14c59e1e9b451d5d1baa0e70aca604f0efea5 (patch)
tree8a479221e12cd4f445b97219565ed3e8f4ae54d2
parent792d0ace4f84023d1132f8d61a88bd48e3d7775d (diff)
downloadurllib3-1fa14c59e1e9b451d5d1baa0e70aca604f0efea5.tar.gz
Set literals don't exist in Python 2.6
-rw-r--r--urllib3/contrib/pyopenssl.py2
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,)
)