diff options
author | 2016-03-04 20:12:36 -0500 | |
---|---|---|
committer | 2016-03-04 20:12:36 -0500 | |
commit | b1f6725c9b75567c7fc40914c3e36edadde8ffd1 (patch) | |
tree | d0846741651f0d6bd5522c5918ea9ba722a827d8 | |
parent | ebuild/eapi: add some simple docstrings (diff) | |
download | pkgcore-b1f6725c9b75567c7fc40914c3e36edadde8ffd1.tar.gz pkgcore-b1f6725c9b75567c7fc40914c3e36edadde8ffd1.tar.bz2 pkgcore-b1f6725c9b75567c7fc40914c3e36edadde8ffd1.zip |
ebuild/eapi: simplify phase name prefix check
-rw-r--r-- | pkgcore/ebuild/eapi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgcore/ebuild/eapi.py b/pkgcore/ebuild/eapi.py index 9ecd55062..3d207f66b 100644 --- a/pkgcore/ebuild/eapi.py +++ b/pkgcore/ebuild/eapi.py @@ -205,7 +205,7 @@ def get_eapi(magic, suppress_unsupported=True): def _shorten_phase_name(func_name): - if func_name.startswith("src_") or func_name.startswith("pkg_"): + if func_name.startswith(('src_', 'pkg_')): return func_name[4:] return func_name |