[pypy-commit] pyrepl default: fix this bug, which has been around unnoticed forever

antocuni noreply at buildbot.pypy.org
Sat Aug 2 11:15:22 CEST 2014


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r258:cef132a7e464
Date: 2014-08-02 10:15 +0100
http://bitbucket.org/pypy/pyrepl/changeset/cef132a7e464/

Log:	fix this bug, which has been around unnoticed forever

diff --git a/pyrepl/completing_reader.py b/pyrepl/completing_reader.py
--- a/pyrepl/completing_reader.py
+++ b/pyrepl/completing_reader.py
@@ -40,9 +40,8 @@
 
 STRIPCOLOR_REGEX = re.compile(r"\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[m|K]")
 
-
 def stripcolor(s):
-    return STRIPCOLOR_REGEX.regexp.sub('', s)
+    return STRIPCOLOR_REGEX.sub('', s)
 
 
 def real_len(s):


More information about the pypy-commit mailing list