You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
18 lines
494 B
Python
18 lines
494 B
Python
# From 3.4.4 mailcap.py
|
|
# Bug was needing a grammar rule to add POP_BLOCK before the end of the while1.
|
|
# 3.3 apparently doesn't add this.
|
|
def readmailcapfile(line):
|
|
while 1:
|
|
if not line: break
|
|
if line[0] == '#' or line.strip() == '':
|
|
continue
|
|
if not line:
|
|
continue
|
|
for j in range(3):
|
|
line[j] = line[j].strip()
|
|
if '/' in line:
|
|
line['/'].append('a')
|
|
else:
|
|
line['/'] = 'a'
|
|
return
|