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)
# IM >= 5.5.8 separates options for source and target files
# See http://www.imagemagick.org/Usage/basics/#why
if im or gm:
- sopts = "-depth 8"
+ sopts = ""
topts = ""
elif sys.platform == 'darwin':
command = 'lyxconvert'