commit | 60fb27fe4eaec68e32a07f70dda25700a1d124b8 | [log] [tgz] |
---|---|---|
author | Zac Medico <zmedico@gentoo.org> | Mon Mar 04 17:21:03 2013 -0800 |
committer | Zac Medico <zmedico@gentoo.org> | Mon Mar 04 17:21:03 2013 -0800 |
tree | e011b8a91156f6343b4e62c9c00840f8f2024646 | |
parent | 70ea9fada67dde2c8d8e61857153d940cb596683 [diff] |
Use endswith(tuple).
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index e4f93c6..fae293e 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py
@@ -3597,7 +3597,7 @@ 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"))