On Wednesday, 29 March 2017 23.09.23 WEST Uwe Stöhr wrote:
> And indeed by using i n line 208
> 
> os.write(fd, b'\relax')
> instead of
> os.write(fd, r'\relax')
> 
> I get with
> inpname = shortPath(str(tmpfname)).replace('\\', '/')
> no error. But then it will of course fail with Python 2.
> 
> regards Uwe

What about changing that line to:

os.write(fd, b'\\relax')

it should work for both versions, no?


r'\relax' just says not to escape the backslash char, so
r'\relax' is the same as '\\relax'.

Both python 2 and 3 accept the _b_ prefix for representing byte, it just 
happens that for python 2 this a no-op.


Regards,
-- 
José Abílio

Reply via email to