From 60fb27fe4eaec68e32a07f70dda25700a1d124b8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 4 Mar 2013 17:21:03 -0800 Subject: [PATCH] Use endswith(tuple). --- pym/_emerge/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index e4f93c63a..fae293ee2 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -3597,7 +3597,7 @@ def run_action(settings, trees, mtimedb, myaction, myopts, myfiles, del mytrees, mydb for x in myfiles: - if (x.endswith(".ebuild") or x.endswith(".tbz2")) and \ + if x.endswith((".ebuild", ".tbz2")) and \ os.path.exists(os.path.abspath(x)): print(colorize("BAD", "\n*** emerging by path is broken " "and may not always work!!!\n")) -- 2.26.2