Fix tempfile.NamedTemporaryFile usage under Python 3
authorMichael Prokop <mika@grml.org>
Tue, 7 Jul 2020 13:40:21 +0000 (15:40 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 7 Jul 2020 13:45:59 +0000 (15:45 +0200)
commitdb26b123e7a5734fa5536a7a0f96ae2d1738b703
tree7ef1904c973491f8deb02ec71d61b27ff394ad54
parent366d980fd1f076fe0730a5185767e92631cf79c0
Fix tempfile.NamedTemporaryFile usage under Python 3

The mode parameter of tempfile.NamedTemporaryFile defaults to 'w+b',
see https://docs.python.org/3/library/tempfile.html

Fixes:

| TypeError: a bytes-like object is required, not 'str'

Closes: grml/grml#152
grml-x