File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 2323INVERSE_COLORS ["default" ] = INVERSE_COLORS [CURTSIES_COLORS [0 ]]
2424
2525
26- def func_for_letter (l , default = "k" ):
26+ def func_for_letter (letter_color_code : str , default : str = "k" ):
2727 """Returns FmtStr constructor for a bpython-style color code"""
28- if l == "d" :
29- l = default
30- elif l == "D" :
31- l = default .upper ()
32- return partial (fmtstr , fg = CNAMES [l .lower ()], bold = l .isupper ())
28+ if letter_color_code == "d" :
29+ letter_color_code = default
30+ elif letter_color_code == "D" :
31+ letter_color_code = default .upper ()
32+ return partial (
33+ fmtstr ,
34+ fg = CNAMES [letter_color_code .lower ()],
35+ bold = letter_color_code .isupper (),
36+ )
3337
3438
35- def color_for_letter (l , default = "k" ):
36- if l == "d" :
37- l = default
38- return CNAMES [l .lower ()]
39+ def color_for_letter (letter_color_code : str , default : str = "k" ):
40+ if letter_color_code == "d" :
41+ letter_color_code = default
42+ return CNAMES [letter_color_code .lower ()]
3943
4044
4145def parse (s ):
You can’t perform that action at this time.
0 commit comments