check_for_fat: Avoid comparing strings and bytes
authorSven Joachim <svenjoac@gmx.de>
Wed, 30 Oct 2019 16:28:07 +0000 (17:28 +0100)
committerSven Joachim <svenjoac@gmx.de>
Wed, 30 Oct 2019 16:28:07 +0000 (17:28 +0100)
commit5b2ffe433479368d711a63d985b926966940cad5
tree195af738c4c59627abcd765fd37ac58cc9c79d7a
parent24bebddedf8f76f0f9e9db46a04a13df84d1ba0d
check_for_fat: Avoid comparing strings and bytes

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.
grml2usb