--- rsvg.orig	2009-04-27 14:20:00.000000000 +0300
+++ rsvg	2009-04-27 14:24:25.000000000 +0300
@@ -8,13 +8,15 @@
 import getopt, sys, os
 
 def usage():
-    print >> sys.stdout, """Usage: rsvg [-v?] [-d|--dpi-x <float>] [-p|--dpi-y <float>]
+    sys.stdout.write(
+        """Usage: rsvg [-v?] [-d|--dpi-x <float>] [-p|--dpi-y <float>]
         [-x|--x-zoom <float>] [-y|--y-zoom <float>] [-w|--width <int>]
         [-h|--height <int>] [-q|--quality <int>] [-f|--format [png, jpeg]]
-        [-v|--version] [-?|--help] [--usage] [OPTIONS...] file.svg file.png"""
+        [-v|--version] [-?|--help] [--usage] [OPTIONS...] file.svg file.png
+""")
 
 def help():
-    print >> sys.stdout, """Usage: rsvg [OPTIONS...] file.svg file.png
+    sys.stdout.write("""Usage: rsvg [OPTIONS...] file.svg file.png
   -d, --dpi-x=<float>          pixels per inch
   -p, --dpi-y=<float>          pixels per inch
   -x, --x-zoom=<float>         x zoom factor
@@ -28,7 +30,7 @@
 Help options:
   -?, --help                   Show this help message
   --usage                      Display brief usage message
-""",
+""")
 
 def shellEscape(param):
     """Escape a string parameter for the shell."""
@@ -45,7 +47,7 @@
     
     for o, a in opts:
         if o in ("-v", "--version"):
-            print "rsvg version %s" % ("2.26.0")
+            print("rsvg version %s" % ("2.26.0"))
             sys.exit(0)
         elif o in ("--usage"):
             usage()
@@ -55,10 +57,11 @@
             sys.exit(0)
         elif (o in ("-f", "--format")):
             if a in ("jpg", "jpeg"):
-                print >> sys.stderr, "The JPEG output format is no longer supported"
+                sys.stderr.write(
+                    "The JPEG output format is no longer supported\n")
                 sys.exit(1)
         elif (o in ("-q", "--quality")):
-            print "The --quality option is no longer supported"
+            print("The --quality option is no longer supported")
             sys.exit(1)
         else:
             command_str += " " + shellEscape(o) + " " + shellEscape(a)
