mirror of https://github.com/python/cpython
SF #515024 remove unused variable
This commit is contained in:
parent
f151625b59
commit
bc9bc187aa
|
@ -1158,7 +1158,6 @@ def urlencode(query,doseq=0):
|
||||||
# sequences...
|
# sequences...
|
||||||
try:
|
try:
|
||||||
# non-sequence items should not work with len()
|
# non-sequence items should not work with len()
|
||||||
x = len(query)
|
|
||||||
# non-empty strings will fail this
|
# non-empty strings will fail this
|
||||||
if len(query) and type(query[0]) != types.TupleType:
|
if len(query) and type(query[0]) != types.TupleType:
|
||||||
raise TypeError
|
raise TypeError
|
||||||
|
|
Loading…
Reference in New Issue