summaryrefslogtreecommitdiff
path: root/plac/doc/example4.py
diff options
context:
space:
mode:
Diffstat (limited to 'plac/doc/example4.py')
-rw-r--r--plac/doc/example4.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/plac/doc/example4.py b/plac/doc/example4.py
deleted file mode 100644
index 2e76b65..0000000
--- a/plac/doc/example4.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# example4.py
-from datetime import datetime
-
-def main(dsn, table='product', today=datetime.today()):
- "Do something on the database"
- print(dsn, table, today)
-
-if __name__ == '__main__':
- import sys
- args = sys.argv[1:]
- if not args:
- sys.exit('usage: python %s dsn' % sys.argv[0])
- elif len(args) > 2:
- sys.exit('Unrecognized arguments: %s' % ' '.join(argv[2:]))
- main(*args)