diff options
author | 2019-09-30 07:38:04 -0600 | |
---|---|---|
committer | 2019-09-30 08:16:49 -0600 | |
commit | 3f898935b096a372b9f466d2cbe157311f9ebda0 (patch) | |
tree | 3b8636452e773b9f6833c50e2e388b1c8730fb60 /doc/generate | |
parent | use scope instead of threshold for results (diff) | |
download | pkgcheck-3f898935b096a372b9f466d2cbe157311f9ebda0.tar.gz pkgcheck-3f898935b096a372b9f466d2cbe157311f9ebda0.tar.bz2 pkgcheck-3f898935b096a372b9f466d2cbe157311f9ebda0.zip |
base: use a regular class for scope objects
Diffstat (limited to 'doc/generate')
-rwxr-xr-x | doc/generate/pkgcheck/checks.py | 4 | ||||
-rwxr-xr-x | doc/generate/pkgcheck/keywords.py | 4 |
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: |