We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3b74b8 commit dc667b6Copy full SHA for dc667b6
1 file changed
bpython/curtsiesfrontend/interpreter.py
@@ -44,9 +44,7 @@ class BPythonFormatter(Formatter):
44
straightforward."""
45
46
def __init__(self, color_scheme, **options):
47
- self.f_strings = {}
48
- for k, v in color_scheme.items():
49
- self.f_strings[k] = f"\x01{v}"
+ self.f_strings = {k: f"\x01{v}" for k, v in color_scheme.items()}
50
super().__init__(**options)
51
52
def format(self, tokensource, outfile):
0 commit comments