summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-11 19:13:28 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-11 19:13:28 (GMT)
commitab14088141ab749763e35b7a49e79c368940e12d (patch)
tree0369f9a136bfea659c24b0cf9fedf2ee98272308 /Lib/re.py
parent9a64ccb997a99f85c2538047823c7478bfcff6ed (diff)
downloadcpython-ab14088141ab749763e35b7a49e79c368940e12d.zip
cpython-ab14088141ab749763e35b7a49e79c368940e12d.tar.gz
cpython-ab14088141ab749763e35b7a49e79c368940e12d.tar.bz2
Minor code clean up and improvements in the re module.
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/re.py b/Lib/re.py
index a4de5cc..788fa6b 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -363,7 +363,7 @@ class Scanner:
append = result.append
match = self.scanner.scanner(string).match
i = 0
- while 1:
+ while True:
m = match()
if not m:
break