diff options
author | David Beazley <dave@dabeaz.com> | 2008-02-28 20:09:50 +0000 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2008-02-28 20:09:50 +0000 |
commit | 19a3ee01efcf6642aa94cdd0b7772a0c7698c064 (patch) | |
tree | 1bda7e7492e6dfc874f8e64f2d291ad0b0509337 /example | |
parent | ed1cb91715f6cd6fb368e8f624158b1614420687 (diff) | |
download | ply-19a3ee01efcf6642aa94cdd0b7772a0c7698c064.tar.gz |
Reverted accidental change on last commit
Diffstat (limited to 'example')
-rw-r--r-- | example/BASIC/basic.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/example/BASIC/basic.py b/example/BASIC/basic.py index 4b3675d..6a2f489 100644 --- a/example/BASIC/basic.py +++ b/example/BASIC/basic.py @@ -12,12 +12,7 @@ import basinterp # If a runtime error occurs, we bail out and enter # interactive mode below if len(sys.argv) == 2: - import os,mmap - data = mmap.mmap(os.open(sys.argv[1],os.O_RDONLY), - os.path.getsize(sys.argv[1]), - access=mmap.ACCESS_READ) - -# data = open(sys.argv[1]).read() + data = open(sys.argv[1]).read() prog = basparse.parse(data) if not prog: raise SystemExit b = basinterp.BasicInterpreter(prog) |