summaryrefslogtreecommitdiffstats
path: root/Lib/calendar.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-10-21 15:58:29 (GMT)
committerBarry Warsaw <barry@python.org>2002-10-21 15:58:29 (GMT)
commit644991fa35920f8ccdf9af66f1e6f90f79c1cf87 (patch)
tree898c87f58e29d4cc90b20189dd6f7cdf6cd9ab8a /Lib/calendar.py
parent5c458052f0411ee97cb6c2bebfcaa59ecda60f4d (diff)
downloadcpython-644991fa35920f8ccdf9af66f1e6f90f79c1cf87.zip
cpython-644991fa35920f8ccdf9af66f1e6f90f79c1cf87.tar.gz
cpython-644991fa35920f8ccdf9af66f1e6f90f79c1cf87.tar.bz2
(py-parse-state-re): Remove the "if" from the regular expression.
This fixes an indentation bug reported by Jeremy when seeing multiple list comprehensions like so: [x for x in seq if blah(x)] # ... [y for y in seq if blah(y)] The reason this broke is because this regexp caused the "find a safe parsing start location higher up in the file" test to erroneously find the if in the listcomp. I think the other keywords in this regexp are fine and good enough. After a weekend of testing, I can't find any adverse effects.
Diffstat (limited to 'Lib/calendar.py')
0 files changed, 0 insertions, 0 deletions