Code

force string argument to sys.stderr.write in method errormsg of inkex.py
authoraurium <aurium@users.sourceforge.net>
Thu, 22 Jan 2009 21:31:31 +0000 (21:31 +0000)
committeraurium <aurium@users.sourceforge.net>
Thu, 22 Jan 2009 21:31:31 +0000 (21:31 +0000)
share/extensions/inkex.py

index 49f875ac2ad06e0bc5025c6e59ff9b651bd3a2b9..0bc49153981caf03c17af16b4ddab387b36d9017 100755 (executable)
@@ -81,7 +81,7 @@ def errormsg(msg):
          ...
          inkex.errormsg(_("This extension requires two selected paths."))
     """
-    sys.stderr.write((msg + "\n").encode("UTF-8"))
+    sys.stderr.write((str(msg) + "\n").encode("UTF-8"))
 
 def check_inkbool(option, opt, value):
     if str(value).capitalize() == 'True':