Skip to content

Commit

Permalink
Define raw_input as input under Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lelit committed Mar 28, 2017
1 parent dac5c0c commit 62febcd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/example_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
example app to test running an app as subprocess within pty
"""
from __future__ import print_function, unicode_literals
import time
import sys, time


PY3 = sys.version_info[0] >= 3

if PY3:
raw_input = input


# http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors:
Expand Down

0 comments on commit 62febcd

Please sign in to comment.