Test for 2.7 loop try else bug

This commit is contained in:
rocky
2018-01-12 22:25:42 -05:00
parent 1485d26aa2
commit 70ddd71c0e
2 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,12 @@
# From Python 2.7 ihooks.py
def ensure_fromlist(self, fromlist):
for sub in fromlist:
if sub:
if not recursive:
try:
all = 5
except AttributeError:
pass
else:
all = 6
continue