From: Michael Prokop Date: Thu, 31 Oct 2019 10:46:55 +0000 (+0100) Subject: check_for_fat(): use subprocess.check_output to avoid dependency on Python 3.7 X-Git-Tag: v0.17.0~1 X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=ea3de89e4be517e1ebd95e27b5365e5d67894532;hp=ea3de89e4be517e1ebd95e27b5365e5d67894532 check_for_fat(): use subprocess.check_output to avoid dependency on Python 3.7 The text=... option for subprocess.Popen was added in Python 3.7 only ("text was added as a more readable alias for universal_newlines"), and also "encoding" and "errors" were introduced in Python 3.6 only. We don't want to stick to a specific py3k version, so let's try to be as backwards compatible as possible. Since we only need stdout of blkid let's switch to subprocess.check_output instead. Thanks: Florian Apolloner for review and feedback ---