aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2016-03-04 19:43:37 -0500
committerTim Harder <radhermit@gmail.com>2016-03-04 19:43:56 -0500
commit46aea59ac23f6ae049af70c1c842dd70c619f522 (patch)
treed71cc162747ec29bdca617b8c5b08d0f3f8ef97a
parentpclean tmp: use better variable names (diff)
downloadpkgcore-46aea59ac23f6ae049af70c1c842dd70c619f522.tar.gz
pkgcore-46aea59ac23f6ae049af70c1c842dd70c619f522.tar.bz2
pkgcore-46aea59ac23f6ae049af70c1c842dd70c619f522.zip
ebuild/eapi: add some simple docstrings
-rw-r--r--pkgcore/ebuild/eapi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgcore/ebuild/eapi.py b/pkgcore/ebuild/eapi.py
index 611f8a56c..9ecd55062 100644
--- a/pkgcore/ebuild/eapi.py
+++ b/pkgcore/ebuild/eapi.py
@@ -144,6 +144,7 @@ class EAPI(object):
@klass.jit_attr
def is_supported(self):
+ """Check if an EAPI is supported."""
if EAPI.known_eapis.get(self._magic) is not None:
if not self.options.is_supported:
logger.warning("EAPI %s isn't fully supported" % self)
@@ -181,6 +182,7 @@ class EAPI(object):
parent = parent._parent
def get_ebd_env(self):
+ """Return EAPI options passed to the ebd environment."""
d = {}
for k, converter in self.ebd_env_options.iteritems():
d["PKGCORE_%s" % (k.upper(),)] = converter(getattr(self.options, k))
@@ -189,6 +191,7 @@ class EAPI(object):
def get_eapi(magic, suppress_unsupported=True):
+ """Return EAPI object for a given identifier."""
eapi = EAPI.known_eapis.get(magic)
if eapi is None and suppress_unsupported:
eapi = EAPI.unknown_eapis.get(magic)