aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2016-03-04 20:12:36 -0500
committerTim Harder <radhermit@gmail.com>2016-03-04 20:12:36 -0500
commitb1f6725c9b75567c7fc40914c3e36edadde8ffd1 (patch)
treed0846741651f0d6bd5522c5918ea9ba722a827d8
parentebuild/eapi: add some simple docstrings (diff)
downloadpkgcore-b1f6725c9b75567c7fc40914c3e36edadde8ffd1.tar.gz
pkgcore-b1f6725c9b75567c7fc40914c3e36edadde8ffd1.tar.bz2
pkgcore-b1f6725c9b75567c7fc40914c3e36edadde8ffd1.zip
ebuild/eapi: simplify phase name prefix check
-rw-r--r--pkgcore/ebuild/eapi.py2
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