diff options
author | David Beazley <dave@dabeaz.com> | 2020-02-22 15:57:54 -0600 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2020-02-22 15:57:54 -0600 |
commit | 1fac9fed647909b92f3779dd34beb8564f6f247b (patch) | |
tree | c520f1c56791c541105c1023c8dd68d99853ad8b /example/closurecalc/calc.py | |
parent | 1321375e013425958ea090b55aecae0a4b7face6 (diff) | |
download | ply-1fac9fed647909b92f3779dd34beb8564f6f247b.tar.gz |
Massive refactoring/cleanup
Diffstat (limited to 'example/closurecalc/calc.py')
-rw-r--r-- | example/closurecalc/calc.py | 5 |
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) |