aboutsummaryrefslogtreecommitdiff
path: root/cryptech_console
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2020-05-25 19:33:38 -0400
committerRob Austein <sra@hactrn.net>2020-05-25 19:33:38 -0400
commit1cd42f6d3332e1edf78b06bd7dcf51f5a1a7bb23 (patch)
tree1eca75f12e53763e223856d46bc1ab4224079086 /cryptech_console
parentaab1cf4d694b4d4fefa77f02b4c42d7683a2f43f (diff)
Untested conversion to support Python 3
Diffstat (limited to 'cryptech_console')
-rwxr-xr-xcryptech_console4
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptech_console b/cryptech_console
index 5ac12ba..e88bf70 100755
--- a/cryptech_console
+++ b/cryptech_console
@@ -88,10 +88,10 @@ class FemtoTerm(object):
self.close()
def stdin_loop(self):
- return self.copy_loop(self.stdin_stream, self.socket_stream, "\n", "\r")
+ return self.copy_loop(self.stdin_stream, self.socket_stream, b"\n", b"\r")
def stdout_loop(self):
- return self.copy_loop(self.socket_stream, self.stdout_stream, "\r\n", "\n")
+ return self.copy_loop(self.socket_stream, self.stdout_stream, b"\r\n", b"\n")
def main():
parser = argparse.ArgumentParser(formatter_class = argparse.ArgumentDefaultsHelpFormatter)