Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanslenders committed Nov 10, 2023
1 parent 517313f commit 81574e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/full-screen/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ def main():
def accept(buff):
# Evaluate "calculator" expression.
try:
output = (
f"\n\nIn: {input_field.text}\nOut: {eval(input_field.text)}"
) # Don't do 'eval' in real code!
output = f"\n\nIn: {input_field.text}\nOut: {eval(input_field.text)}" # Don't do 'eval' in real code!
except BaseException as e:
output = f"\n\n{e}"
new_text = output_field.text + output
Expand Down

0 comments on commit 81574e1

Please sign in to comment.