mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-11-07 17:14:22 -10:00
Move STDOUT/PIPE to process class, so they can be referenced directly
This commit is contained in:
1 parent
1d59a90fa8
commit
0cead77039
1 file changed
+2
-3
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user