changeset 352:798c7f32a960

line spacing
author catherine@Drou
date Tue, 16 Feb 2010 23:08:17 -0500
parents 8a5bc9f5c28e
children 5e3f918c41d8
files docs/pycon2010/pirate8.py docs/pycon2010/pycon2010.rst
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docs/pycon2010/pirate8.py	Tue Feb 16 23:07:04 2010 -0500
+++ b/docs/pycon2010/pirate8.py	Tue Feb 16 23:08:17 2010 -0500
@@ -45,7 +45,8 @@
             separator = ', '
         else:
             separator = ' '
-        print('{0} and a bottle of {1}'.format(separator.join(chant), arg))
+        chant = separator.join(chant)
+        print('{0} and a bottle of {1}'.format(chant, arg))
 
 pirate = Pirate()
 pirate.cmdloop()
\ No newline at end of file
--- a/docs/pycon2010/pycon2010.rst	Tue Feb 16 23:07:04 2010 -0500
+++ b/docs/pycon2010/pycon2010.rst	Tue Feb 16 23:08:17 2010 -0500
@@ -275,6 +275,7 @@
             separator = ', '
         else:
             separator = ' '
-        print('{0} and a bottle of {1}'.format(separator.join(chant), arg))
+        chant = separator.join(chant)
+        print('{0} and a bottle of {1}'.format(chant, arg))
 
         
\ No newline at end of file