summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/flp/tcache.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-17 20:36:40 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-17 20:36:40 (GMT)
commit16aac45fc269ad355f069d5f76a0f4cafd06063f (patch)
tree1941156fe4df24b0c5a34d25174e3c1473c6e8d7 /Demo/sgi/flp/tcache.py
parentd679e09970465d1b914b7d3dc11eaddbbcd6d289 (diff)
downloadcpython-16aac45fc269ad355f069d5f76a0f4cafd06063f.zip
cpython-16aac45fc269ad355f069d5f76a0f4cafd06063f.tar.gz
cpython-16aac45fc269ad355f069d5f76a0f4cafd06063f.tar.bz2
Remove the SGI demos. These were all ancient and nobody cared enough.
Diffstat (limited to 'Demo/sgi/flp/tcache.py')
-rwxr-xr-xDemo/sgi/flp/tcache.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/Demo/sgi/flp/tcache.py b/Demo/sgi/flp/tcache.py
deleted file mode 100755
index cf713fc..0000000
--- a/Demo/sgi/flp/tcache.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# Test bug in caching of forms
-
-import sys
-import os
-import flp
-
-filename = 'tcache.fd'
-cachename = filename + 's'
-
-def first():
- try:
- os.unlink(cachename)
- except os.error:
- pass
- first = flp.parse_form(filename, 'first')
-
-def second():
- forms = flp.parse_forms(filename)
- k = forms.keys()
- if 'first' in k and 'second' in k:
- print 'OK'
- else:
- print 'BAD!', k
-
-def main():
- if sys.argv[1:]:
- second()
- else:
- first()
- print 'Now run the script again with an argument'
-
-main()