Skip to content

Commit 45b373a

Browse files
committed
Remove useless use of list
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 82a1dea commit 45b373a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/curtsiesfrontend/parse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import re
1313

14-
cnames = dict(list(zip('krgybmcwd', colors + ('default',))))
14+
cnames = dict(zip('krgybmcwd', colors + ('default',)))
1515

1616
def func_for_letter(l, default='k'):
1717
"""Returns FmtStr constructor for a bpython-style color code"""
@@ -35,7 +35,7 @@ def parse(s):
3535
break
3636
start, rest = peel_off_string(rest)
3737
stuff.append(start)
38-
return (sum([fs_from_match(d) for d in stuff[1:]], fs_from_match(stuff[0]))
38+
return (sum((fs_from_match(d) for d in stuff[1:]), fs_from_match(stuff[0]))
3939
if len(stuff) > 0
4040
else FmtStr())
4141

0 commit comments

Comments
 (0)