0

tileset: fix changelist option for Python 3

Turns out os.write only accepts bytes!
This commit is contained in:
Nicolas F
2019-09-11 21:00:34 +02:00
parent 4f619cbaef
commit 71d59be4b9

View File

@@ -489,7 +489,7 @@ class TileSet(object):
# We don't use os.fdopen() because this fd may be shared by # We don't use os.fdopen() because this fd may be shared by
# many tileset objects, and as soon as this method exists the # many tileset objects, and as soon as this method exists the
# file object may be garbage collected, closing the file. # file object may be garbage collected, closing the file.
os.write(fd, imgpath + "\n") os.write(fd, (imgpath + "\n").encode())
# See note at the top of this file about the rendercheck modes for an # See note at the top of this file about the rendercheck modes for an
# explanation of what this method does in different situations. # explanation of what this method does in different situations.