summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/texinputs/python.sty7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index c8d3691..121d045 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -314,7 +314,12 @@
\else
\renewcommand{\py@thismodulekey}{#1}
\fi
- \csname py@#2IndexModule\endcsname{#3}
+ \@ifundefined{py@#2IndexModule}{%
+ \typeout{*** MACRO declaremodule called with unknown module type: `#2'}
+ \py@ModuleIndex{#3}%
+ }{%
+ \csname py@#2IndexModule\endcsname{#3}%
+ }
\label{module-\py@thismodulekey}
}
\newif\ifpy@ModPlatformFileIsOpen \py@ModPlatformFileIsOpenfalse