Debugged and added @cpattr and @mvattr. Added unittest cases for all default commands for which they are suitable. Many small bug fixes as part of that.
This commit is contained in:
parent
7b43c4a608
commit
6f0d21802b
11 changed files with 328 additions and 155 deletions
|
|
@ -14,6 +14,7 @@ user.
|
|||
|
||||
"""
|
||||
import re
|
||||
from src.utils import utils
|
||||
|
||||
class ANSITable(object):
|
||||
"""
|
||||
|
|
@ -140,7 +141,7 @@ class ANSIParser(object):
|
|||
"""
|
||||
if not string:
|
||||
return ''
|
||||
string = str(string)
|
||||
string = utils.to_str(string)
|
||||
for sub in self.ansi_sub:
|
||||
# go through all available mappings and translate them
|
||||
string = sub[0].sub(sub[1], string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue