diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2019-07-20 10:05:00 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2019-07-20 10:06:26 +0200 |
commit | abb345aaa28c67bba96b4dbfc6b6c33df6bba1d2 (patch) | |
tree | 94678e39c4e61b574fd59f1eb29ee222d816f43d | |
parent | 3a5c5de271d62b5a7f9f9b11f419ab68a5470af9 (diff) |
Remove redundant decode() args
-rw-r--r-- | build/mixxx.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/mixxx.py b/build/mixxx.py index dac67b7b0b..47bb226e99 100644 --- a/build/mixxx.py +++ b/build/mixxx.py @@ -160,7 +160,7 @@ class MixxxBuild(object): try: import subprocess pkg_config_cmd = ['pkg-config', '--variable=includedir', 'Qt5Core'] - default_qtdir = subprocess.check_output(pkg_config_cmd).decode(sys.stdout.encoding) + default_qtdir = subprocess.check_output(pkg_config_cmd).decode() finally: pass @@ -219,7 +219,7 @@ class MixxxBuild(object): import shlex import subprocess cc_version_cmd = shlex.split(self.env['CC']) + ['--version'] - cc_version = subprocess.check_output(cc_version_cmd).decode(sys.stdout.encoding) + cc_version = subprocess.check_output(cc_version_cmd).decode() self.compiler_is_gcc = 'gcc' in cc_version.lower() self.compiler_is_clang = 'clang' in cc_version.lower() @@ -227,7 +227,7 @@ class MixxxBuild(object): if self.compiler_is_gcc: self.gcc_major_version = None gcc_version_cmd = shlex.split(self.env['CC']) + ['-dumpversion'] - gcc_version = subprocess.check_output(gcc_version_cmd).decode(sys.stdout.encoding) + gcc_version = subprocess.check_output(gcc_version_cmd).decode() # If match is None we don't know the version. if not gcc_version is None: version_split = gcc_version.split('.') |