Skip to content

Commit

Permalink
Enhancing subprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Nov 3, 2016
1 parent 55dea7f commit 8e2f73a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maryjane.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ def py_exec(self, statement):
return
exec(statement, globals(), self.last_dict())

def run_subprocess(self, cmd) -> str:
@staticmethod
def run_subprocess(cmd: str) -> str:
with subprocess.Popen(
cmd, shell=True, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as process:
try:
Expand Down

0 comments on commit 8e2f73a

Please sign in to comment.