Message197091
I think the way this loop in /Lib/codeop.py is wrong
def _maybe_compile(compiler, source, filename, symbol):
# Check for source consisting of only blank lines and comments
for line in source.split("\n"):
line = line.strip()
if line and line[0] != '#':
break # Leave it alone
else:
if symbol != "eval":
source = "pass" # Replace it with a 'pass' statement
I think the else statement shouldn't be there. |
|
Date |
User |
Action |
Args |
2013-09-06 18:59:45 | Wilberto | set | recipients:
+ Wilberto |
2013-09-06 18:59:45 | Wilberto | set | messageid: <1378493985.89.0.543332382387.issue18949@psf.upfronthosting.co.za> |
2013-09-06 18:59:45 | Wilberto | link | issue18949 messages |
2013-09-06 18:59:45 | Wilberto | create | |
|