Skip to content

Commit ace2d06

Browse files
committed
Ensure that color is always initialized
1 parent 4c5e18b commit ace2d06

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bpython/curtsiesfrontend/parse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def parse(s: str) -> FmtStr:
6262

6363
def fs_from_match(d: Dict[str, Any]) -> FmtStr:
6464
atts = {}
65+
color = "default"
6566
if d["fg"]:
6667
# this isn't according to spec as I understand it
6768
if d["fg"].isupper():

0 commit comments

Comments
 (0)