Skip to content

Commit 3366c85

Browse files
committed
Handle xforms with two arguments
1 parent 92f9349 commit 3366c85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

curtsies/formatstring.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,9 @@ def color_str(self) -> str:
147147
continue
148148
elif v is False:
149149
continue
150-
elif v is True:
150+
elif k in one_arg_xforms:
151151
s = one_arg_xforms[k](s)
152152
else:
153-
# TODO: What's the purpose of this code? It will never be executed.
154153
s = two_arg_xforms[k](s, v)
155154
return s
156155

0 commit comments

Comments
 (0)