summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-30 03:39:14 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-30 03:39:14 (GMT)
commit46ac8eb3c899b498299a2f8fbcdd4ed3f32addba (patch)
treebcbe8646fceabec7bcdc4c365f6389fb537fdb68 /Lib/cgi.py
parent78e057a32a92c3bfb464b27a02f4931c474769e8 (diff)
downloadcpython-46ac8eb3c899b498299a2f8fbcdd4ed3f32addba.zip
cpython-46ac8eb3c899b498299a2f8fbcdd4ed3f32addba.tar.gz
cpython-46ac8eb3c899b498299a2f8fbcdd4ed3f32addba.tar.bz2
Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 88d419e..5f4bad3 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -323,8 +323,7 @@ def parse_header(line):
"""
plist = map(lambda x: x.strip(), line.split(';'))
- key = plist[0].lower()
- del plist[0]
+ key = plist.pop(0).lower()
pdict = {}
for p in plist:
i = p.find('=')