summaryrefslogtreecommitdiff
path: root/plac/doc/shelve_interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'plac/doc/shelve_interpreter.py')
-rw-r--r--plac/doc/shelve_interpreter.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/plac/doc/shelve_interpreter.py b/plac/doc/shelve_interpreter.py
deleted file mode 100644
index b7fb688..0000000
--- a/plac/doc/shelve_interpreter.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# shelve_interpreter.py
-import plac, ishelve
-
-@plac.annotations(
- interactive=('start interactive interface', 'flag'),
- subcommands='the commands of the underlying ishelve interpreter')
-def main(interactive, *subcommands):
- """
- This script works both interactively and non-interactively.
- Use .help to see the internal commands.
- """
- if interactive:
- plac.Interpreter(ishelve.main).interact()
- else:
- for out in plac.call(ishelve.main, subcommands):
- print(out)
-
-if __name__ == '__main__':
- plac.call(main)