summaryrefslogtreecommitdiff
path: root/docs/generate.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-01-12 23:05:37 +0100
committergbrandl <devnull@localhost>2007-01-12 23:05:37 +0100
commitf2104882a53bf96ffdaf022ee08519bf50d4dbaa (patch)
tree6e3836ec201e0f66535bf5661ad900d73db608a0 /docs/generate.py
parentab314f97200cb94f8c3e7b87b4c418aa68f828dd (diff)
downloadpygments-f2104882a53bf96ffdaf022ee08519bf50d4dbaa.tar.gz
[svn] Fix 2.4 compat.
Diffstat (limited to 'docs/generate.py')
-rw-r--r--docs/generate.py2
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