1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-03 18:16:17 +01:00

Remove duplicate taking care of sys.stderr in babysitter:main.

This commit is contained in:
Matej Cepl 2022-03-17 10:20:28 +01:00
parent e16e196fa1
commit ad8d2bd67e
Signed by untrusted user: mcepl
GPG Key ID: 79205802880BC9D8

View File

@ -205,9 +205,6 @@ def main():
sys.stdout = os.fdopen(sys.stdout.fileno(), sys.stdout.mode, 1)
sys.stderr = os.fdopen(sys.stderr.fileno(), sys.stderr.mode, 1)
if not os.isatty(sys.stderr.fileno()):
sys.stderr = os.fdopen(sys.stderr.fileno(), sys.stderr.mode, 1)
sys.exit(run(commandline.Osc()))
# vim: sw=4 et