From: Sven Joachim Date: Wed, 30 Oct 2019 16:28:07 +0000 (+0100) Subject: check_for_fat: Avoid comparing strings and bytes X-Git-Tag: v0.17.0~5^2~1 X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=5b2ffe433479368d711a63d985b926966940cad5;hp=5b2ffe433479368d711a63d985b926966940cad5 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. ---