Various cleanups and fixes found during refurbishing the unittest framework (not pushed yet)
This commit is contained in:
parent
6c20987d9a
commit
9f6e3de637
4 changed files with 20 additions and 17 deletions
|
|
@ -228,8 +228,7 @@ class ANSIParser(object):
|
|||
string += "%s%s" % (part, sep[0].strip())
|
||||
if strip_ansi:
|
||||
# remove all ansi codes (including those manually inserted in string)
|
||||
for sub in self.ansi_sub:
|
||||
string = sub[0].sub("", string)
|
||||
string = self.ansi_regex.sub("", string)
|
||||
return string
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue