diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-03-27 08:52:35 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-03-27 08:52:35 -0700 |
commit | b2147b15e11b3d30d646098696ef69d749aeb5b2 (patch) | |
tree | 87bd634e6a305434351128469ef000ed267ee441 /pym/portage/dbapi | |
parent | ae8070542fcee0516fbfa270f6ef3f3e53a8d220 (diff) | |
download | portage-b2147b15e11b3d30d646098696ef69d749aeb5b2.tar.gz portage-b2147b15e11b3d30d646098696ef69d749aeb5b2.tar.bz2 portage-b2147b15e11b3d30d646098696ef69d749aeb5b2.zip |
Replace @returns with @return.
Diffstat (limited to 'pym/portage/dbapi')
-rw-r--r-- | pym/portage/dbapi/bintree.py | 6 | ||||
-rw-r--r-- | pym/portage/dbapi/porttree.py | 6 | ||||
-rw-r--r-- | pym/portage/dbapi/vartree.py | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 31ba364a4..2295b9f59 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -214,7 +214,7 @@ def _pkgindex_cpv_map_latest_build(pkgindex): @param pkgindex: A PackageIndex instance. @type pkgindex: PackageIndex @rtype: dict - @returns: a dict containing entry for the give cpv. + @return: a dict containing entry for the give cpv. """ cpv_map = {} @@ -1157,7 +1157,7 @@ class binarytree(object): Performs checksums and evaluates USE flag conditionals. Raises InvalidDependString if necessary. @rtype: dict - @returns: a dict containing entry for the give cpv. + @return: a dict containing entry for the give cpv. """ pkg_path = self.getname(cpv) @@ -1363,7 +1363,7 @@ class binarytree(object): Verify digests for the given package and raise DigestException if verification fails. @rtype: bool - @returns: True if digests could be located, False otherwise. + @return: True if digests could be located, False otherwise. """ cpv = pkg if not isinstance(cpv, basestring): diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 233a2c1d1..382bcda43 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -254,7 +254,7 @@ class portdbapi(dbapi): @param canonical_repo_path: the canonical path of a repository, as resolved by os.path.realpath() @type canonical_repo_path: String - @returns: The repo_name for the corresponding repository, or None + @return: The repo_name for the corresponding repository, or None if the path does not correspond a known repository @rtype: String or None """ @@ -331,7 +331,7 @@ class portdbapi(dbapi): Create an EbuildMetadataPhase instance to generate metadata for the give ebuild. @rtype: EbuildMetadataPhase - @returns: A new EbuildMetadataPhase instance, or None if the + @return: A new EbuildMetadataPhase instance, or None if the metadata cache is already valid. """ metadata, ebuild_hash = self._pull_valid_cache(cpv, ebuild_path, repo_path) @@ -551,7 +551,7 @@ class portdbapi(dbapi): @param mytree: The canonical path of the tree in which the ebuild is located, or None for automatic lookup @type mypkg: String - @returns: A dict which maps each file name to a set of alternative + @return: A dict which maps each file name to a set of alternative URIs. @rtype: dict """ diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 3e603e233..25ea4c189 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -921,7 +921,7 @@ class vardbapi(dbapi): @param myroot: ignored, self._eroot is used instead @param mycpv: ignored @rtype: int - @returns: new counter value + @return: new counter value """ myroot = None mycpv = None @@ -1732,7 +1732,7 @@ class dblink(object): PreservedLibsRegistry yet. @type preserve_paths: set @rtype: Integer - @returns: + @return: 1. os.EX_OK if everything went well. 2. return code of the failed phase (for prerm, postrm, cleanrm) """ @@ -2546,7 +2546,7 @@ class dblink(object): @param destroot: @type destroot: @rtype: Boolean - @returns: + @return: 1. True if this package owns the file. 2. False if this package does not own the file. """ @@ -3376,7 +3376,7 @@ class dblink(object): @param prev_mtimes: { Filename:mtime } mapping for env_update @type prev_mtimes: Dictionary @rtype: Boolean - @returns: + @return: 1. 0 on success 2. 1 on failure @@ -4193,7 +4193,7 @@ class dblink(object): @param thismtime: The current time (typically long(time.time()) @type thismtime: Long @rtype: None or Boolean - @returns: + @return: 1. True on failure 2. None otherwise |