projects
/
grml2usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
5b2ffe4
)
check_for_fat: Avoid comparing strings and bytes
author
Sven Joachim
<svenjoac@gmx.de>
Wed, 30 Oct 2019 16:28:07 +0000
(17:28 +0100)
committer
Sven Joachim
<svenjoac@gmx.de>
Wed, 30 Oct 2019 16:28:07 +0000
(17:28 +0100)
By default Subprocess.open() opens file objects in binary mode, so the
"filesystem" variable is an array of bytes, and comparing it to a
string always yields false. Fix that by explicitly opening the stream
in text mode.
No differences found