From c5f066d3f6236cb41d9b50b3fa7e8e66ece0b311 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 26 Dec 2018 14:05:01 +0200 Subject: [PATCH] Flake8 --- setup.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 74d0083ca..150e36754 100755 --- a/setup.py +++ b/setup.py @@ -158,8 +158,18 @@ def _pkg_config(name): if not DEBUG: command_libs.append('--silence-errors') command_cflags.append('--silence-errors') - libs = subprocess.check_output(command_libs).decode('utf8').strip().replace('-L', '') - cflags = subprocess.check_output(command_cflags).decode('utf8').strip().replace('-I', '') + libs = ( + subprocess.check_output(command_libs) + .decode("utf8") + .strip() + .replace("-L", "") + ) + cflags = ( + subprocess.check_output(command_cflags) + .decode("utf8") + .strip() + .replace("-I", "") + ) return (libs, cflags) except Exception: pass