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/pirate7_8py_source.html | 174 ----------------------------------- 1 file changed, 174 deletions(-) delete mode 100644 doxygen/html/pirate7_8py_source.html (limited to 'doxygen/html/pirate7_8py_source.html') diff --git a/doxygen/html/pirate7_8py_source.html b/doxygen/html/pirate7_8py_source.html deleted file mode 100644 index 9fad93e..0000000 --- a/doxygen/html/pirate7_8py_source.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - -Cmd2: /Users/amrogers/Developer/Projects/cmd2/docs/pycon2010/pirate7.py Source File - - - - - - - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Cmd2 - -
- -
-
- - - - - -
-
- -
-
-
- -
-
-
-
pirate7.py
-
-
-Go to the documentation of this file.
00001 from cmd2 import Cmd
-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 
-00045 pirate = Pirate()
-00046 pirate.cmdloop()
-
-
- - - - - -- cgit v1.2.1