diff options
Diffstat (limited to 'docs/generate.py')
-rw-r--r-- | docs/generate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/generate.py b/docs/generate.py index abc4565a..c52677a5 100644 --- a/docs/generate.py +++ b/docs/generate.py @@ -45,7 +45,7 @@ def generate_lexer_docs(): moduledocstrings = {} for classname, data in sorted(LEXERS.iteritems(), key=lambda x: x[0]): module = data[0] - mod = __import__(module, fromlist=[classname]) + mod = __import__(module, None, None, [classname]) cls = getattr(mod, classname) if not cls.__doc__: print "Warning: %s does not have a docstring." % classname |