forked from platformio/platformio-core
Fix PY3 Lint "consider-using-set-comprehension"
This commit is contained in:
@ -797,10 +797,8 @@ def merge_dicts(d1, d2, path=None):
|
|||||||
def ensure_udev_rules():
|
def ensure_udev_rules():
|
||||||
|
|
||||||
def _rules_to_set(rules_path):
|
def _rules_to_set(rules_path):
|
||||||
return set([
|
return set(l.strip() for l in get_file_contents(rules_path).split("\n")
|
||||||
l.strip() for l in get_file_contents(rules_path).split("\n")
|
if l.strip() and not l.startswith("#"))
|
||||||
if l.strip() and not l.startswith("#")
|
|
||||||
])
|
|
||||||
|
|
||||||
if "linux" not in get_systype():
|
if "linux" not in get_systype():
|
||||||
return None
|
return None
|
||||||
|
Reference in New Issue
Block a user