changeset 720:f136912c81a9

remove
author Jeff Hammel <k0scist@gmail.com>
date Tue, 04 Nov 2014 15:06:59 -0800
parents 7c4ee496794c
children 2ebf5cef55de
files python/signature.py
diffstat 1 files changed, 0 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- a/python/signature.py	Mon Nov 03 10:36:06 2014 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-import random
-import sys
-import time
-
-from optparse import OptionParser
-
-parser = OptionParser()
-parser.add_option('-f', '--file')
-parser.add_option('-o', '--output')
-(options, args) = parser.parse_args()
-
-if options.file:
-    f = file(options.file)    
-else:
-    f = sys.stdin
-
-lines = [ line.strip() or '\n' for line in f.read().strip().split('\n') ]
-content = '\n'.join(lines)
-fortunes = [i.strip() for i in content.split('\n\n') ]
-f.close()
-
-while 1:
-    if options.output:
-        f = file(sig, 'w')
-        print >> f, random.choice(fortunes)
-        f.close()
-    else:
-        print random.choice(fortunes)
-    time.sleep(1)
-