We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82a1dea commit 45b373aCopy full SHA for 45b373a
bpython/curtsiesfrontend/parse.py
@@ -11,7 +11,7 @@
11
12
import re
13
14
-cnames = dict(list(zip('krgybmcwd', colors + ('default',))))
+cnames = dict(zip('krgybmcwd', colors + ('default',)))
15
16
def func_for_letter(l, default='k'):
17
"""Returns FmtStr constructor for a bpython-style color code"""
@@ -35,7 +35,7 @@ def parse(s):
35
break
36
start, rest = peel_off_string(rest)
37
stuff.append(start)
38
- return (sum([fs_from_match(d) for d in stuff[1:]], fs_from_match(stuff[0]))
+ return (sum((fs_from_match(d) for d in stuff[1:]), fs_from_match(stuff[0]))
39
if len(stuff) > 0
40
else FmtStr())
41
0 commit comments