projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: remove byte/string python3 incompatibility
[super-star-trek.git]
/
sst.py
diff --git
a/sst.py
b/sst.py
index b2067e965cfa4863bf58e7a9f9a03cf647363a6b..aa91753a9cb67f0c56bf9973c4499469b8c0a589 100755
(executable)
--- 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 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.
# 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:
def cgetline():
"Get a line of input."
if game.options & OPTION_CURSES:
- linein = c
urwnd.getstr(
) + "\n"
+ linein = c
odecs.decode(curwnd.getstr()
) + "\n"
curwnd.refresh()
else:
if replayfp and not replayfp.closed:
curwnd.refresh()
else:
if replayfp and not replayfp.closed: