Skip to content

Commit 67de44e

Browse files
committed
fix this bug, which has been around unnoticed forever
1 parent e7b28b3 commit 67de44e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyrepl/completing_reader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ def prefix(wordlist, j=0):
4040

4141
STRIPCOLOR_REGEX = re.compile(r"\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[m|K]")
4242

43-
4443
def stripcolor(s):
45-
return STRIPCOLOR_REGEX.regexp.sub('', s)
44+
return STRIPCOLOR_REGEX.sub('', s)
4645

4746

4847
def real_len(s):

0 commit comments

Comments
 (0)