summaryrefslogtreecommitdiff
path: root/example/closurecalc/calc.py
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2020-02-22 15:57:54 -0600
committerDavid Beazley <dave@dabeaz.com>2020-02-22 15:57:54 -0600
commit1fac9fed647909b92f3779dd34beb8564f6f247b (patch)
treec520f1c56791c541105c1023c8dd68d99853ad8b /example/closurecalc/calc.py
parent1321375e013425958ea090b55aecae0a4b7face6 (diff)
downloadply-1fac9fed647909b92f3779dd34beb8564f6f247b.tar.gz
Massive refactoring/cleanup
Diffstat (limited to 'example/closurecalc/calc.py')
-rw-r--r--example/closurecalc/calc.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/example/closurecalc/calc.py b/example/closurecalc/calc.py
index 6031b05..59c9d6f 100644
--- a/example/closurecalc/calc.py
+++ b/example/closurecalc/calc.py
@@ -9,9 +9,6 @@
import sys
sys.path.insert(0, "../..")
-if sys.version_info[0] >= 3:
- raw_input = input
-
# Make a calculator function
@@ -124,7 +121,7 @@ calc = make_calculator()
while True:
try:
- s = raw_input("calc > ")
+ s = input("calc > ")
except EOFError:
break
r = calc(s)