From: Zac Medico Date: Tue, 5 Mar 2013 01:21:03 +0000 (-0800) Subject: Use endswith(tuple). X-Git-Tag: v2.2.0_alpha166~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60fb27fe4eaec68e32a07f70dda25700a1d124b8;p=portage.git Use endswith(tuple). --- 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"))