Open josegomezr opened 11 months ago
Same for the text
parameter:
Changed in version 3.7: Added the text parameter, as a more understandable alias of universal_newlines. Added the capture_output parameter.
Traceback (most recent call last):
File "/usr/lib/obs/service/go_modules", line 276, in <module>
main()
File "/usr/lib/obs/service/go_modules", line 229, in main
cp = cmd_go_mod("download", go_mod_dir)
File "/usr/lib/obs/service/go_modules", line 183, in cmd_go_mod
cp = run(["go", "mod", cmd], cwd=dir, text=True)
File "/usr/lib64/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'text'
capture_output
was introduced in py3.7 as of this commit.