]> granicus.if.org Git - python/commitdiff
Minor aesthetic change in sre_parse.py, as suggested by Mike Coleman.
authorGustavo Niemeyer <gustavo@niemeyer.net>
Fri, 3 Sep 2004 20:15:56 +0000 (20:15 +0000)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Fri, 3 Sep 2004 20:15:56 +0000 (20:15 +0000)
Lib/sre_parse.py

index 3e27145074e00d9d857c669f2ee3dbb3a58da413..506661593740324f1822d6730f68902e411c546a 100644 (file)
@@ -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))