summaryrefslogtreecommitdiff
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2004-09-03 20:15:56 +0000
committerGustavo Niemeyer <gustavo@niemeyer.net>2004-09-03 20:15:56 +0000
commitd688e3bb86da5e42335ebdf553777779d520c259 (patch)
tree29b20756f15cb5eafd7f8d74835cfb99b66f5b6f /Lib/sre_parse.py
parent0298b7cb8dc5419026c8fa688b3e24afaf1a8a53 (diff)
downloadcpython-d688e3bb86da5e42335ebdf553777779d520c259.tar.gz
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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index 3e27145074..5066615937 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))