aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2020-02-05 16:15:48 -0700
committerTim Harder <radhermit@gmail.com>2020-02-05 16:15:48 -0700
commit3de3345eca28c0b5a7e73bf2a417cccd8bda80c7 (patch)
tree23ee86b2e0815876a086fe871470939da137bec6 /doc
parentre-add delayed imports to avoid cyclic import issues (diff)
downloadpkgcheck-3de3345eca28c0b5a7e73bf2a417cccd8bda80c7.tar.gz
pkgcheck-3de3345eca28c0b5a7e73bf2a417cccd8bda80c7.tar.bz2
pkgcheck-3de3345eca28c0b5a7e73bf2a417cccd8bda80c7.zip
doc: fix build with changed objects module layout
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/generate/pkgcheck/checks.py4
-rwxr-xr-xdoc/generate/pkgcheck/keywords.py6
-rwxr-xr-xdoc/generate/pkgcheck/reporters.py4
3 files changed, 7 insertions, 7 deletions
diff --git a/doc/generate/pkgcheck/checks.py b/doc/generate/pkgcheck/checks.py
index da671b2a..ea026254 100755
--- a/doc/generate/pkgcheck/checks.py
+++ b/doc/generate/pkgcheck/checks.py
@@ -20,7 +20,7 @@ from textwrap import dedent, TextWrapper
from snakeoil.strings import pluralism as _pl
-from pkgcheck import base, const
+from pkgcheck import base, objects
from pkgcheck.checks import GentooRepoCheck
@@ -43,7 +43,7 @@ def main(f=sys.stdout, **kwargs):
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 == scope)
+ checks = (x for x in objects.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 03b66890..aa28dfed 100755
--- a/doc/generate/pkgcheck/keywords.py
+++ b/doc/generate/pkgcheck/keywords.py
@@ -15,7 +15,7 @@ from textwrap import dedent
from snakeoil.strings import pluralism as _pl
-from pkgcheck import base, const
+from pkgcheck import base, objects
from pkgcheck.checks import GentooRepoCheck
@@ -34,14 +34,14 @@ def main(f=sys.stdout, **kwargs):
out(__doc__.strip())
related_checks = defaultdict(set)
- for check in const.CHECKS.values():
+ for check in objects.CHECKS.values():
for keyword in check.known_results:
related_checks[keyword].add(check)
for scope in base.scopes.values():
_rst_header('-', scope.desc.capitalize() + ' scope')
- keywords = (x for x in const.KEYWORDS.values() if x.scope == scope)
+ keywords = (x for x in objects.KEYWORDS.values() if x.scope == scope)
for keyword in keywords:
if keyword.__doc__ is not None:
try:
diff --git a/doc/generate/pkgcheck/reporters.py b/doc/generate/pkgcheck/reporters.py
index f00b4b2c..aaca914c 100755
--- a/doc/generate/pkgcheck/reporters.py
+++ b/doc/generate/pkgcheck/reporters.py
@@ -5,7 +5,7 @@
import sys
from textwrap import dedent
-from pkgcheck import const
+from pkgcheck import objects
def main(f=sys.stdout, **kwargs):
@@ -24,7 +24,7 @@ def main(f=sys.stdout, **kwargs):
_rst_header('=', 'Reporters', newline=False)
- for reporter in const.REPORTERS.values():
+ for reporter in objects.REPORTERS.values():
if reporter.__doc__ is not None:
try:
summary, explanation = reporter.__doc__.split('\n', 1)