mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix AttributeError with Python 3.
At least since Python 3.5, `output` is already a (unicode) string and does not have a "decode" method.
This commit is contained in:
parent
e665715fc4
commit
9abd46b4d5
@ -35,7 +35,10 @@ if fout.close() != None:
|
||||
output = fout.readline()
|
||||
fout.close()
|
||||
if not PY2:
|
||||
output = output.decode()
|
||||
# Ensure we have a (unicode) string object in Python3
|
||||
# (not required for version >= 3.5).
|
||||
# FIXME: Check whether this is required with any supported 3.x version!
|
||||
output = str(output)
|
||||
|
||||
version = re_version.match(output)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user