mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)
This commit is contained in:
parent
78e057a32a
commit
46ac8eb3c8
11 changed files with 19 additions and 42 deletions
|
@ -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('=')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue