replace path /dev/null by os.devnull

This commit is contained in:
AbbalYouness
2018-10-17 09:46:26 +02:00
committed by Brian May
parent c780597de3
commit 41f5b3e9c1
4 changed files with 7 additions and 7 deletions

View File

@ -116,8 +116,8 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
if python:
pycmd = "'%s' -c '%s'" % (python, pyscript)
else:
pycmd = ("P=python3; $P -V 2>/dev/null || P=python; "
"exec \"$P\" -c %s") % quote(pyscript)
pycmd = ("P=python3; $P -V 2>%s || P=python; "
"exec \"$P\" -c %s") % (os.devnull, quote(pyscript))
pycmd = ("exec /bin/sh -c %s" % quote(pycmd))
argv = (sshl +
portl +