From 04cdcb0feb369ac4c60e10ccdc139c57e8b52e62 Mon Sep 17 00:00:00 2001 From: Zearin Date: Fri, 7 Oct 2011 10:34:23 -0400 Subject: Removed leftovers from installing with pip. Oops! I noticed there was a bunch of extra crap left over from when I installed this module onto my own system. I thought it wouldn't have modified itself at the time (just the Python module library on my system), but I was wrong. Begone, useless cruft! --- doxygen/html/pirate8_8py_source.html | 185 ----------------------------------- 1 file changed, 185 deletions(-) delete mode 100644 doxygen/html/pirate8_8py_source.html (limited to 'doxygen/html/pirate8_8py_source.html') diff --git a/doxygen/html/pirate8_8py_source.html b/doxygen/html/pirate8_8py_source.html deleted file mode 100644 index 9ef6a1e..0000000 --- a/doxygen/html/pirate8_8py_source.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - -Cmd2: /Users/amrogers/Developer/Projects/cmd2/docs/pycon2010/pirate8.py Source File - - - - - - - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Cmd2 - -
- -
-
- - - - - -
-
- -
-
-
- -
-
-
-
pirate8.py
-
-
-Go to the documentation of this file.
00001 from cmd2 import Cmd, options, make_option
-00002 # prompts and defaults
-00003 
-00004 class Pirate(Cmd):
-00005     gold = 3
-00006     prompt = 'arrr> '
-00007     def default(self, line):
-00008         print('What mean ye by "{0}"?'.format(line))
-00009     def do_loot(self, arg):
-00010         'Seize booty from a passing ship.'
-00011         self.gold += 1
-00012     def do_drink(self, arg):
-00013         '''Drown your sorrrows in rrrum.
-00014         
-00015         drink [n] - drink [n] barrel[s] o' rum.'''          
-00016         try:
-00017             self.gold -= int(arg)
-00018         except:
-00019             if arg:
-00020                 print('''What's "{0}"?  I'll take rrrum.'''.format(arg))
-00021             self.gold -= 1            
-00022     def precmd(self, line):
-00023         self.initial_gold = self.gold
-00024         return line
-00025     def postcmd(self, stop, line):   
-00026         if self.gold != self.initial_gold:
-00027             print('Now we gots {0} doubloons'
-00028                   .format(self.gold))
-00029         if self.gold < 0:
-00030             print("Off to debtorrr's prison.")
-00031             stop = True
-00032         return stop
-00033     def do_quit(self, arg):
-00034         print("Quiterrr!")
-00035         return True    
-00036     default_to_shell = True
-00037     multilineCommands = ['sing']
-00038     terminators = Cmd.terminators + ['...']
-00039     songcolor = 'blue'
-00040     settable = Cmd.settable + 'songcolor Color to ``sing`` in (red/blue/green/cyan/magenta, bold, underline)'
-00041     Cmd.shortcuts.update({'~': 'sing'})
-00042     def do_sing(self, arg):
-00043         print(self.colorize(arg, self.songcolor))
-00044     @options([make_option('--ho', type='int', default=2,
-00045                           help="How often to chant 'ho'"),
-00046               make_option('-c', '--commas',
-00047                           action="store_true", 
-00048                           help="Intersperse commas")])
-00049     def do_yo(self, arg, opts):
-00050         chant = ['yo'] + ['ho'] * opts.ho
-00051         separator = ', ' if opts.commas else ' '
-00052         chant = separator.join(chant)
-00053         print('{0} and a bottle of {1}'
-00054               .format(chant, arg))
-00055 
-00056 pirate = Pirate()
-00057 pirate.cmdloop()
-
-
- - - - - -- cgit v1.2.1