[Python-checkins] r64698 - doctools/branches/0.4.x/sphinx/directives/other.py

georg.brandl python-checkins at python.org
Fri Jul 4 12:21:09 CEST 2008


Author: georg.brandl
Date: Fri Jul  4 12:21:09 2008
New Revision: 64698

Log:
Allow setting current module to None.


Modified:
   doctools/branches/0.4.x/sphinx/directives/other.py

Modified: doctools/branches/0.4.x/sphinx/directives/other.py
==============================================================================
--- doctools/branches/0.4.x/sphinx/directives/other.py	(original)
+++ doctools/branches/0.4.x/sphinx/directives/other.py	Fri Jul  4 12:21:09 2008
@@ -117,7 +117,10 @@
     # stuff in module foo, but links to module foo won't lead here.
     env = state.document.settings.env
     modname = arguments[0].strip()
-    env.currmodule = modname
+    if modname == 'None':
+        env.currmodule = None
+    else:
+        env.currmodule = modname
     return []
 
 currentmodule_directive.arguments = (1, 0, 0)


More information about the Python-checkins mailing list