diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-05-25 17:26:11 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-05-25 17:26:11 +0200 |
commit | 3957b734ed75d8a53f1e195bf9126d8d8625832d (patch) | |
tree | ff744cfc1e3c34d1e1859d7ca5f6308c8ef8c451 /src/livestreamer/compat.py | |
parent | e4c07414d077964613da5b7870a49f0882f703b1 (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.py | 2 |
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 |