You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
15 lines
355 B
Python
15 lines
355 B
Python
# From Python 3.4 mailcap
|
|
def readmailcapfile(caps):
|
|
while 1:
|
|
line = 'abc'
|
|
if line[0] == '#' or line == '':
|
|
continue
|
|
key, fields = (1,2)
|
|
if not (key and fields):
|
|
continue
|
|
if key in caps:
|
|
caps[key].append(fields)
|
|
else:
|
|
caps[key] = [fields]
|
|
return caps
|