Skip to content

Commit

Permalink
Fix uts
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbrittain committed Jun 2, 2021
1 parent 06ed41b commit 22f4a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asciimatics/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def parse(self):
:returns: a 3-tuple of (start offset in raw text, command to execute, parameters)
"""
if self._state.attributes:
yield (0, Parser.CHANGE_COLOURS, self._attributes)
yield (0, Parser.CHANGE_COLOURS, tuple(self._attributes))
offset = 0
while len(self._state.text) > 0:
letter = self._state.text[0]
Expand Down Expand Up @@ -126,7 +126,7 @@ def parse(self):
:returns: a 3-tuple of (start offset in raw text, command to execute, parameters)
"""
if self._state.attributes:
yield (0, Parser.CHANGE_COLOURS, self._state.attributes)
yield (0, Parser.CHANGE_COLOURS, tuple(self._state.attributes))
offset = last_offset = 0
while len(self._state.text) > 0:
match = self._colour_sequence.match(str(self._state.text))
Expand Down

0 comments on commit 22f4a31

Please sign in to comment.