Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /infinity/bam_composer.py [86c9f8] .. [3662b5] Maximize Restore

  Switch to side-by-side view

--- a/infinity/bam_composer.py
+++ b/infinity/bam_composer.py
@@ -171,7 +171,7 @@
 
 		if len(buf) != (3 * 256): # FIXME: 255 or 256?
 			# FIXME:allow smaller palettes
-			print >>sys.stderr, "Palette size should be  255"
+			print("Palette size should be  255", file=sys.stderr)
 		
 		im = pi.new ('P', (1, 1))
 		im.putpalette (struct.unpack ('768B', buf))
@@ -321,7 +321,7 @@
 
 
 def help ():
-	print >>sys.stderr, "Usage: %s <project file> <output file>" %os.path.basename (sys.argv[0])
+	print("Usage: %s <project file> <output file>" %os.path.basename (sys.argv[0]), file=sys.stderr)
 
 if __name__ == '__main__':
 	if len (sys.argv) != 3: