summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
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!