From f2104882a53bf96ffdaf022ee08519bf50d4dbaa Mon Sep 17 00:00:00 2001 From: gbrandl Date: Fri, 12 Jan 2007 23:05:37 +0100 Subject: [svn] Fix 2.4 compat. --- docs/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/generate.py') 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 -- cgit v1.2.1