diff docs/pycon2010/pirate7.py @ 374:89e38f922c25

font sizes up
author cat@eee
date Sat, 20 Feb 2010 00:11:34 -0500
parents d275d3beceff
children
line wrap: on
line diff
--- a/docs/pycon2010/pirate7.py	Fri Feb 19 12:20:44 2010 -0500
+++ b/docs/pycon2010/pirate7.py	Sat Feb 20 00:11:34 2010 -0500
@@ -24,10 +24,11 @@
         return line
     def postcmd(self, stop, line):   
         if self.gold != self.initial_gold:
-            print('Now we gots {0} doubloons'.format(self.gold))
+            print('Now we gots {0} doubloons'
+                  .format(self.gold))
         if self.gold < 0:
-            print("Off to debtorrr's prison.  Game overrr.")
-            return True
+            print("Off to debtorrr's prison.")
+            stop = True
         return stop
     def do_quit(self, arg):
         print("Quiterrr!")
@@ -42,4 +43,4 @@
         print(self.colorize(arg, self.songcolor))
 
 pirate = Pirate()
-pirate.cmdloop()
\ No newline at end of file
+pirate.cmdloop()