aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2019-09-30 07:38:04 -0600
committerTim Harder <radhermit@gmail.com>2019-09-30 08:16:49 -0600
commit3f898935b096a372b9f466d2cbe157311f9ebda0 (patch)
tree3b8636452e773b9f6833c50e2e388b1c8730fb60 /doc
parentuse scope instead of threshold for results (diff)
downloadpkgcheck-3f898935b096a372b9f466d2cbe157311f9ebda0.tar.gz
pkgcheck-3f898935b096a372b9f466d2cbe157311f9ebda0.tar.bz2
pkgcheck-3f898935b096a372b9f466d2cbe157311f9ebda0.zip
base: use a regular class for scope objects
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/generate/pkgcheck/checks.py4
-rwxr-xr-xdoc/generate/pkgcheck/keywords.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/generate/pkgcheck/checks.py b/doc/generate/pkgcheck/checks.py
index a1feb297..5d62ee2d 100755
--- a/doc/generate/pkgcheck/checks.py
+++ b/doc/generate/pkgcheck/checks.py
@@ -39,10 +39,10 @@ def main(f=sys.stdout, **kwargs):
wrapper = TextWrapper(width=85)
- for i, scope in enumerate(base.known_scopes.values()):
+ for i, scope in enumerate(base.scopes.values()):
_rst_header('-', scope.desc.capitalize() + ' scope')
- checks = (x for x in const.CHECKS.values() if x.scope == i)
+ checks = (x for x in const.CHECKS.values() if x.scope == scope)
for check in checks:
if check.__doc__ is not None:
try:
diff --git a/doc/generate/pkgcheck/keywords.py b/doc/generate/pkgcheck/keywords.py
index ea3fbb81..816ec604 100755
--- a/doc/generate/pkgcheck/keywords.py
+++ b/doc/generate/pkgcheck/keywords.py
@@ -37,10 +37,10 @@ def main(f=sys.stdout, **kwargs):
for keyword in check.known_results:
related_checks[keyword].add(check.__name__)
- for scope in base.known_scopes.values():
+ for scope in base.scopes.values():
_rst_header('-', scope.desc.capitalize() + ' scope')
- keywords = (x for x in const.KEYWORDS.values() if x.scope == scope.scope)
+ keywords = (x for x in const.KEYWORDS.values() if x.scope == scope)
for keyword in keywords:
if keyword.__doc__ is not None:
try: