Skip to content

Commit 81574e1

Browse files
Fix formatting.
1 parent 517313f commit 81574e1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/full-screen/calculator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ def main():
4949
def accept(buff):
5050
# Evaluate "calculator" expression.
5151
try:
52-
output = (
53-
f"\n\nIn: {input_field.text}\nOut: {eval(input_field.text)}"
54-
) # Don't do 'eval' in real code!
52+
output = f"\n\nIn: {input_field.text}\nOut: {eval(input_field.text)}" # Don't do 'eval' in real code!
5553
except BaseException as e:
5654
output = f"\n\n{e}"
5755
new_text = output_field.text + output

0 commit comments

Comments
 (0)