diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2019-02-05 23:57:11 +0000 |
---|---|---|
committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2019-02-09 21:43:47 +0000 |
commit | a90997d2f0a442a8aa8a56cbbbbf577716a18742 (patch) | |
tree | 929e591d7a7bd09176e63fb9208648874f5208cb /usr/src/tools/onbld/Checks/ProcessCheck.py | |
parent | 1b58875ad7966cf2c85ee8e92f3da04f0a3b2f7a (diff) | |
download | illumos-gate-a90997d2f0a442a8aa8a56cbbbbf577716a18742.tar.gz |
10347 git-pbchk requires more python3 fixes
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: John Levon <john.levon@joyent.com>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
Diffstat (limited to 'usr/src/tools/onbld/Checks/ProcessCheck.py')
-rw-r--r-- | usr/src/tools/onbld/Checks/ProcessCheck.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/tools/onbld/Checks/ProcessCheck.py b/usr/src/tools/onbld/Checks/ProcessCheck.py index 1d3bf9df07..883ea46692 100644 --- a/usr/src/tools/onbld/Checks/ProcessCheck.py +++ b/usr/src/tools/onbld/Checks/ProcessCheck.py @@ -24,7 +24,7 @@ # Use is subject to license terms. # -# Copyright 2018 OmniOS Community Edition (OmniOSce) Association. +# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. # # Wrap a command-line check tool in a pythonic API @@ -46,7 +46,7 @@ def processcheck(command, args, inpt, output): # don't deadlock with the child if both pipes fill. # try: - tmpfile = tempfile.TemporaryFile(prefix=command, mode="w+b") + tmpfile = tempfile.TemporaryFile(prefix=command, mode="w+") except EnvironmentError as e: output.write("Could not create temporary file: %s\n" % e) return (3, None) |