Added log warnings on monkey patch imports
authorW. Trevor King <wking@drexel.edu>
Fri, 13 Aug 2010 11:03:02 +0000 (07:03 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 13 Aug 2010 11:03:02 +0000 (07:03 -0400)
hooke/compat/forking.py
hooke/compat/minidom.py

index 9acf816bd45319079b28bd47f12d72f0a968bd4a..5a161a95530365b66e521408a3124aa1e1e40cbd 100644 (file)
@@ -27,6 +27,7 @@ suggested patch dynamically.
   http://code.google.com/p/hooke/issues/detail?id=40#c17
 """
 
+import logging
 import multiprocessing.forking
 
 
@@ -107,3 +108,6 @@ def prepare(data):
                 except Exception:
                     pass
 multiprocessing.forking.prepare = prepare
+
+logging.warn(
+    'Monkey patched multiprocessing.forking.prepare for issue8534')
index d2025cfe5847438541f3a499643906610205d916..dc20ebe67c5f580749131af544fa6b2ee775e7a5 100644 (file)
@@ -27,6 +27,7 @@ Importing this module applies the suggested patch dynamically.
   http://www.w3.org/TR/2000/WD-xml-c14n-20000119.html#charescaping
 """
 
+import logging
 import xml.dom.minidom
 
 
@@ -64,3 +65,6 @@ def writexml(self, writer, indent="", addindent="", newl=""):
 instancemethod = type(xml.dom.minidom.Element.writexml)
 xml.dom.minidom.Element.writexml = instancemethod(
     writexml, None, xml.dom.minidom.Element)
+
+logging.warn(
+    'Monkey patched xml.dom.minidom.Element and ._write_data for issue5752')