diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2004-09-03 20:15:56 (GMT) |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2004-09-03 20:15:56 (GMT) |
commit | f5a1599ebe838ebd99ef966e56debb48d3826d30 (patch) | |
tree | f2adfe02934e91ebbb7b0ff6a338b540152329ad /Lib/sre_parse.py | |
parent | bdbdfd731dc2bf4b5490254c0df4b7c7e90ef751 (diff) | |
download | cpython-f5a1599ebe838ebd99ef966e56debb48d3826d30.zip cpython-f5a1599ebe838ebd99ef966e56debb48d3826d30.tar.gz cpython-f5a1599ebe838ebd99ef966e56debb48d3826d30.tar.bz2 |
Minor aesthetic change in sre_parse.py, as suggested by Mike Coleman.
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r-- | Lib/sre_parse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index 3e27145..5066615 100644 --- a/Lib/sre_parse.py +++ b/Lib/sre_parse.py @@ -738,8 +738,8 @@ def parse_template(source, pattern): isoctal = False if s.next in DIGITS: this = this + sget() - if (c in OCTDIGITS and s.next in OCTDIGITS and - this[2] in OCTDIGITS): + if (c in OCTDIGITS and this[2] in OCTDIGITS and + s.next in OCTDIGITS): this = this + sget() isoctal = True literal(makechar(int(this[1:], 8) & 0xff)) |