sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
Bug in load.py
ralsina
#1 Print Post
Posted on 17-09-2009 12:32
Member

Posts: 1
Joined: 17.09.09

First, a note: your page says to report bugs in launchpad, but launchpad says they are not your bug tracker.

Now the bug:

In load_drawing, you do this:

if type(filename) == StringType: [handle it as a filename]
else: [handle it as a file object]

The problem is that unicode strings fall in the "handle as a file object" side.

You may want to do

if type(filename) in StringTypes

instead
 
igor
#2 Print Post
Posted on 19-09-2009 09:45
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Wow! Thank you for patch. I will check this issue. In case of successful verification the patch will be introduced in next sK1 and UniConvertor releases.
Regards,

Igor Novikov
sK1 Project
 
Jump to Forum: