Commits

Michał Górny  committed b3c8572

Fix lack of bool() for filter() in Python3.

Fixes: https://bugs.gentoo.org/show_bug.cgi?id=381601

  • Participants
  • Parent commits 950bd72

Comments (0)

Files changed (1)

File smartliverebuild/cli.py

 	except SLRFailure:
 		return 1
 
-	if not packages and not filter(lambda a: not a.startswith('-'), args):
+	if not packages and not any(filter(lambda a: not a.startswith('-'), args)):
 		return 0
 
 	if opts.pretend: