Move STDOUT/PIPE to process class, so they can be referenced directly

This commit is contained in:
Zach Riggle committed 2017-01-04 12:52:19 -05:00
1 parent 1d59a90fa8
commit 0cead77039
1 file changed
+2 -3
+2 -3
View File
@@ -23,9 +23,6 @@ from pwnlib.util.misc import which
log = getLogger(__name__)
PIPE = subprocess.PIPE
STDOUT = subprocess.STDOUT
class PTY(object): pass
PTY=PTY()
@@ -196,6 +193,8 @@ class process(tube):
>>> p = process(binary.path)
"""
STDOUT = subprocess.STDOUT
PIPE = subprocess.PIPE
PTY = PTY
#: Have we seen the process stop?