rudimentary jython compat

This commit is contained in:
ed
2019-11-11 04:12:25 +01:00
parent 85454e409a
commit 7b4871b7b8
7 changed files with 69 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ def boring_log(msg):
def rice_tid():
tid = threading.current_thread().ident
c = struct.unpack("B" * 5, struct.pack(">Q", tid)[-5:])
c = struct.unpack(b"B" * 5, struct.pack(b">Q", tid)[-5:])
return "".join("\033[1;37;48;5;{}m{:02x}".format(x, x) for x in c)