Skip to content
Permalink
Browse files

tileset: fix changelist option for Python 3

Turns out os.write only accepts bytes!
  • Loading branch information...
CounterPillow committed Sep 11, 2019
1 parent 4f619cb commit 71d59be4b9fbcc789c3f68344a9b3f186d07184f
Showing with 1 addition and 1 deletion.
  1. +1 −1 overviewer_core/tileset.py
@@ -489,7 +489,7 @@ def write_out(tilepath):
# We don't use os.fdopen() because this fd may be shared by
# many tileset objects, and as soon as this method exists the
# 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
# explanation of what this method does in different situations.

0 comments on commit 71d59be

Please sign in to comment.
You can’t perform that action at this time.