summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-18 13:28:54 +0100
committerGitHub <noreply@github.com>2020-03-18 13:28:54 +0100
commitae28c0fdb8f22dc26339e9f81b555e129f61b010 (patch)
tree5c1a904fded1bdf9baccf31fd49c70463c15e3e5
parent602d0d2785993d371bcaa237debb96007b43153d (diff)
parentd78a78bc815397b75d49fec7abf714e1c7f99421 (diff)
Merge pull request #37135 from Anutrix/remove_dead_function_win32_spawn
Remove dead function win32_spawn from methods.py
-rw-r--r--methods.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/methods.py b/methods.py
index 28c6d0c097..56c495468d 100644
--- a/methods.py
+++ b/methods.py
@@ -193,25 +193,6 @@ void unregister_module_types() {
return module_list
-def win32_spawn(sh, escape, cmd, args, env):
- import subprocess
- newargs = ' '.join(args[1:])
- cmdline = cmd + " " + newargs
- startupinfo = subprocess.STARTUPINFO()
- for e in env:
- if type(env[e]) != type(""):
- env[e] = str(env[e])
- proc = subprocess.Popen(cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
- stderr=subprocess.PIPE, startupinfo=startupinfo, shell=False, env=env)
- _, err = proc.communicate()
- rv = proc.wait()
- if rv:
- print("=====")
- print(err)
- print("=====")
- return rv
-
-
def disable_module(self):
self.disabled_modules.append(self.current_module)