From a750b06fc87b63cf05b0bbdb50c2f9a20de2daba Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 11 Jan 2019 13:01:53 +0200 Subject: [PATCH] Fix PY3 Lint "consider-using-set-comprehension" --- platformio/util.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platformio/util.py b/platformio/util.py index c8637e29..aef0e68c 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -818,10 +818,8 @@ def merge_dicts(d1, d2, path=None): def ensure_udev_rules(): def _rules_to_set(rules_path): - return set([ - l.strip() for l in get_file_contents(rules_path).split("\n") - if l.strip() and not l.startswith("#") - ]) + return set(l.strip() for l in get_file_contents(rules_path).split("\n") + if l.strip() and not l.startswith("#")) if "linux" not in get_systype(): return None