summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-06 22:59:15 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-06 22:59:15 (GMT)
commit84fedf7f061797b1fc95b778e517e6dc86e36db2 (patch)
treefd5291aa914152e1f49eb5197f28b76fedb9e0d3 /Lib/urllib.py
parent7d4b759bd972742dfba35597708522f91be5548a (diff)
downloadcpython-84fedf7f061797b1fc95b778e517e6dc86e36db2.zip
cpython-84fedf7f061797b1fc95b778e517e6dc86e36db2.tar.gz
cpython-84fedf7f061797b1fc95b778e517e6dc86e36db2.tar.bz2
No need to assign the results of expressions used only for side effects.
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 0951237..d4740e9 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -234,7 +234,7 @@ class URLopener:
hdrs = fp.info()
fp.close()
return url2pathname(splithost(url1)[1]), hdrs
- except IOError, msg:
+ except IOError:
pass
fp = self.open(url, data)
try:
@@ -1277,7 +1277,7 @@ def urlencode(query,doseq=0):
else:
try:
# is this a sufficient test for sequence-ness?
- x = len(v)
+ len(v)
except TypeError:
# not a sequence
v = quote_plus(str(v))