From f664f312c8c236f127208a6cdc9a4960ce508a39 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sat, 25 Jan 2014 20:41:18 -0800 Subject: [PATCH] Remove unused variable --- py65/utils/console.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/py65/utils/console.py b/py65/utils/console.py index 2df4a4e..a9cf7c3 100644 --- a/py65/utils/console.py +++ b/py65/utils/console.py @@ -56,14 +56,12 @@ else: fcntl.fcntl(fd, fcntl.F_SETFL, oldflags | os.O_NONBLOCK) try: - byte = 0 + char = '' r, w, e = select.select([fd], [], [], 0.1) if r: char = stdin.read(1) if char == "\n": char = "\r" - else: - char = '' finally: termios.tcsetattr(fd, termios.TCSAFLUSH, oldterm) fcntl.fcntl(fd, fcntl.F_SETFL, oldflags)