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/pirate6_8py_source.html | 167 ----------------------------------- 1 file changed, 167 deletions(-) delete mode 100644 doxygen/html/pirate6_8py_source.html (limited to 'doxygen/html/pirate6_8py_source.html') diff --git a/doxygen/html/pirate6_8py_source.html b/doxygen/html/pirate6_8py_source.html deleted file mode 100644 index 20d738a..0000000 --- a/doxygen/html/pirate6_8py_source.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - -Cmd2: /Users/amrogers/Developer/Projects/cmd2/docs/pycon2010/pirate6.py Source File - - - - - - - - - - - - - - -
- - -
- - - - - - - - - - - -
-
Cmd2 - -
- -
-
- - - - - -
-
- -
-
-
- -
-
-
-
pirate6.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}"?'
-00009               .format(line))
-00010     def do_loot(self, arg):
-00011         'Seize booty from a passing ship.'
-00012         self.gold += 1
-00013     def do_drink(self, arg):
-00014         '''Drown your sorrrows in rrrum.
-00015         
-00016         drink [n] - drink [n] barrel[s] o' rum.'''          
-00017         try:
-00018             self.gold -= int(arg)
-00019         except:
-00020             if arg:
-00021                 print('''What's "{0}"?  I'll take rrrum.'''.format(arg))
-00022             self.gold -= 1            
-00023     def precmd(self, line):
-00024         self.initial_gold = self.gold
-00025         return line
-00026     def postcmd(self, stop, line):   
-00027         if self.gold != self.initial_gold:
-00028             print('Now we gots {0} doubloons'
-00029                   .format(self.gold))
-00030         if self.gold < 0:
-00031             print("Off to debtorrr's prison.")
-00032             stop = True
-00033         return stop
-00034     def do_quit(self, arg):
-00035         print("Quiterrr!")
-00036         return True    
-00037 
-00038 pirate = Pirate()
-00039 pirate.cmdloop()
-
-
- - - - - -- cgit v1.2.1