That was a little fussy :-)

This commit is contained in:
enkore 2015-05-28 01:29:00 +02:00
parent 19db834aa6
commit 0891a0ef87

View File

@ -24,9 +24,9 @@ def is_module(obj):
def fail_on_missing_dependency_hints(obj, lines):
# We can automatically check in some cases if we forgot something
if issubclass(obj, ColorRangeModule):
if all("`colour`" not in line for line in lines):
if all("colour" not in line for line in lines):
raise ValueError(">>> Module <{}> uses ColorRangeModule and should document it <<<\n"
"> Requires the PyPI package `colour`".format(obj.__name__))
"> Requires the PyPI package ``colour``".format(obj.__name__))
def process_docstring(app, what, name, obj, options, lines):