Merge pull request #37135 from Anutrix/remove_dead_function_win32_spawn

Remove dead function win32_spawn from methods.py
This commit is contained in:
Rémi Verschelde 2020-03-18 13:28:54 +01:00 committed by GitHub
commit ae28c0fdb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 19 deletions

View File

@ -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)