Skip to content
Snippets Groups Projects
Commit 6b49d889 authored by Marek Chrastina's avatar Marek Chrastina
Browse files

Make pylint happy

parent d93556e8
No related branches found
No related tags found
No related merge requests found
Pipeline #7901 passed with warnings
......@@ -51,7 +51,7 @@ def main():
continue
package_dependencies = [ _ for _ in find_dependencies(jsonpipdeptree, package)]
package_dependencies = list(set(package_dependencies))
if len(filter(lambda dependency: re.search(r'(^==.*|^\d.*)', dependency), package_dependencies)) == 0:
if len([dependency for dependency in package_dependencies if re.search(r'(^==.*|^\d.*)', dependency) is not None]) == 0:
possible_upgrades.append({'package': package, 'dependencies': [ dependency for dependency in package_dependencies if 'Any' not in dependency]})
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment