Permalink
Browse files

Encode from and decode to bytes

  • Loading branch information...
1 parent d160777 commit 57f1657f84acfcaebe40839214b17a60cc004816 @ppaez committed Feb 15, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 kbhit.py
  2. +1 −1 tracks.py
View
@@ -93,7 +93,7 @@ def test():
else:
count = count + 1
if count==1000:
- os.write(sys.stdout.fileno(), '*')
+ os.write(sys.stdout.fileno(), '*'.encode())
count = 0
restore_stdin()
View
@@ -210,7 +210,7 @@ def parsecommand():
playback()
while letra != 'q':
- letra = kbhit.getch()
+ letra = kbhit.getch().decode()
parsecommand()
except:

0 comments on commit 57f1657

Please sign in to comment.