aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2016-06-10 22:54:02 -0400
committerTim Harder <radhermit@gmail.com>2016-06-10 22:54:02 -0400
commitea57a455195fdfbda4de7ff6d71e6f6e64f625b2 (patch)
treec7c8e08434d316ada6287853b983ebc389ec220a
parentebuild/repository: drop compat hacks for pkgcheck (diff)
downloadpkgcore-ea57a455195fdfbda4de7ff6d71e6f6e64f625b2.tar.gz
pkgcore-ea57a455195fdfbda4de7ff6d71e6f6e64f625b2.tar.bz2
pkgcore-ea57a455195fdfbda4de7ff6d71e6f6e64f625b2.zip
ebuild/repository: minor variable name consistency
-rw-r--r--pkgcore/ebuild/repository.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgcore/ebuild/repository.py b/pkgcore/ebuild/repository.py
index 96a23aa6b..720ec0824 100644
--- a/pkgcore/ebuild/repository.py
+++ b/pkgcore/ebuild/repository.py
@@ -363,12 +363,12 @@ class _UnconfiguredTree(prototype.tree):
@klass.jit_attr
def hardcoded_categories(self):
# try reading $LOC/profiles/categories if it's available.
- cats = readlines(
+ categories = readlines(
pjoin(self.base, 'profiles', 'categories'),
True, True, True)
- if cats is not None:
- cats = tuple(imap(intern, cats))
- return cats
+ if categories is not None:
+ categories = tuple(imap(intern, categories))
+ return categories
def _get_categories(self, *optional_category):
# why the auto return? current porttrees don't allow/support