From 71d59be4b9fbcc789c3f68344a9b3f186d07184f Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Wed, 11 Sep 2019 21:00:34 +0200 Subject: [PATCH] tileset: fix changelist option for Python 3 Turns out os.write only accepts bytes! --- overviewer_core/tileset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviewer_core/tileset.py b/overviewer_core/tileset.py index a2884cb..4f2def6 100644 --- a/overviewer_core/tileset.py +++ b/overviewer_core/tileset.py @@ -489,7 +489,7 @@ class TileSet(object): # 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.