From 86e3e6d44e6ce5185084ccafe421c38e6c7e7ca4 Mon Sep 17 00:00:00 2001 From: Frank Uhlig Date: Sat, 18 May 2019 22:34:24 +0200 Subject: [PATCH] fix: remove byte/string python3 incompatibility --- sst.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sst.py b/sst.py index b2067e9..aa91753 100755 --- a/sst.py +++ b/sst.py @@ -17,6 +17,7 @@ from __future__ import print_function, division import os, sys, math, curses, time, pickle, copy, gettext, getpass import getopt, socket, locale +import codecs # This import only works on Unixes. The intention is to enable # Ctrl-P, Ctrl-N, and friends in Cmd. @@ -3522,7 +3523,7 @@ def prouts(proutsline): def cgetline(): "Get a line of input." if game.options & OPTION_CURSES: - linein = curwnd.getstr() + "\n" + linein = codecs.decode(curwnd.getstr()) + "\n" curwnd.refresh() else: if replayfp and not replayfp.closed: -- 2.31.1