X Tutup
Skip to content

Commit aa207a3

Browse files
committed
Add test for last while1 bug fix
1 parent 747212c commit aa207a3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/bytecode_3.4/02_while1.pyc

425 Bytes
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# From Python 3.4 mailcap
2+
def readmailcapfile(caps):
3+
while 1:
4+
line = 'abc'
5+
if line[0] == '#' or line == '':
6+
continue
7+
key, fields = (1,2)
8+
if not (key and fields):
9+
continue
10+
if key in caps:
11+
caps[key].append(fields)
12+
else:
13+
caps[key] = [fields]
14+
return caps

0 commit comments

Comments
 (0)
X Tutup