changeset 5947:e64b119587f8

rst parser: fix safe_import for level param in __import__ call of docutils 0.10
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 07 Mar 2013 02:06:56 +0100
parents 8f518bc5258b
children 378bfb1d0eec
files MoinMoin/parser/text_rst.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text_rst.py	Thu Feb 28 16:02:13 2013 +0100
+++ b/MoinMoin/parser/text_rst.py	Thu Mar 07 02:06:56 2013 +0100
@@ -75,8 +75,8 @@
     docutils = html4css1 = dummyUrllib2()
     html4css1.HTMLTranslator = html4css1.Writer = object
 
-def safe_import(name, globals = None, locals = None, fromlist = None):
-    mod = __builtin__.__import__(name, globals, locals, fromlist)
+def safe_import(name, globals = None, locals = None, fromlist = None, level = -1):
+    mod = __builtin__.__import__(name, globals, locals, fromlist, level)
     if mod:
         mod.open = dummyOpen
         mod.urllib2 = dummyUrllib2