Coding Style
- Save memory.
This commit is contained in:
parent
c79a91261e
commit
6deb413090
1 changed files with 1 additions and 2 deletions
|
|
@ -224,8 +224,7 @@ class TermStr(collections.UserString):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_term(cls, data):
|
def from_term(cls, data):
|
||||||
data = data.expandtabs(tabsize=4)
|
parts = data.expandtabs(tabsize=4).split(ESC)
|
||||||
parts = data.split(ESC)
|
|
||||||
fg_color, bg_color = None, None
|
fg_color, bg_color = None, None
|
||||||
is_bold, is_italic, is_underlined = False, False, False
|
is_bold, is_italic, is_underlined = False, False, False
|
||||||
result_parts = [parts[0]]
|
result_parts = [parts[0]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue