Skip to content

Commit

Permalink
more python3 adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
koreno committed Oct 4, 2015
1 parent 23c3652 commit a09a4ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion termenu-cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import re
import sys
import termenu
Expand Down
4 changes: 2 additions & 2 deletions termenu/termenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,9 @@ def redirect_std():
stdin = sys.stdin
stdout = sys.stdout
if not sys.stdin.isatty():
sys.stdin = open("/dev/tty", "r", 0)
sys.stdin = open("/dev/tty", "rb", 0)
if not sys.stdout.isatty():
sys.stdout = open("/dev/tty", "w", 0)
sys.stdout = open("/dev/tty", "wb", 0)
return stdin, stdout


Expand Down

0 comments on commit a09a4ae

Please sign in to comment.