mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Updated to list comprehension
This commit is contained in:
parent
38abfce630
commit
07edc074da
1 changed files with 1 additions and 3 deletions
|
@ -102,6 +102,4 @@ class Utilities:
|
|||
@staticmethod
|
||||
def is_option(flag, flags):
|
||||
""" Checking for flags. """
|
||||
for f in flag:
|
||||
if f in flags:
|
||||
return True
|
||||
return [f for f in flag if f in flags]
|
||||
|
|
Loading…
Reference in a new issue