summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-06 06:57:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-02-06 06:57:08 (GMT)
commitdbecd93b7203cd187c1978de1207c29d3a9a686c (patch)
treeabb7331791de7b8e85208195e0c948a76cf77b67 /Lib/urllib2.py
parent07ead1731850a9f1bd353b9330341309251099b6 (diff)
downloadcpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.zip
cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.gz
cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.bz2
Replace list of constants with tuples of constants.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index ae2ab17..3d8d593 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -384,7 +384,7 @@ class OpenerDirector:
'unknown_open', req)
def error(self, proto, *args):
- if proto in ['http', 'https']:
+ if proto in ('http', 'https'):
# XXX http[s] protocols are special-cased
dict = self.handle_error['http'] # https is not different than http
proto = args[2] # YUCK!