aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/compat.py
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-05-25 17:26:11 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-05-25 17:26:11 +0200
commit3957b734ed75d8a53f1e195bf9126d8d8625832d (patch)
treeff744cfc1e3c34d1e1859d7ca5f6308c8ef8c451 /src/livestreamer/compat.py
parente4c07414d077964613da5b7870a49f0882f703b1 (diff)
Refactor stream input/output.
- Now uses pbs library to handle subprocesses. - Removed -c option as not all plugins may be based on subprocesses.
Diffstat (limited to 'src/livestreamer/compat.py')
-rw-r--r--src/livestreamer/compat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/livestreamer/compat.py b/src/livestreamer/compat.py
index 48a6718..e9c8c78 100644
--- a/src/livestreamer/compat.py
+++ b/src/livestreamer/compat.py
@@ -7,6 +7,7 @@ is_py3 = (sys.version_info[0] == 3)
if is_py2:
str = unicode
+ input = raw_input
def bytes(b, enc="ascii"):
return str(b)
@@ -14,6 +15,7 @@ if is_py2:
elif is_py3:
str = str
bytes = bytes
+ input = input
try:
import urllib.request as urllib