From: W. Trevor King Date: Fri, 13 Aug 2010 11:03:02 +0000 (-0400) Subject: Added log warnings on monkey patch imports X-Git-Url: http://git.tremily.us/?p=hooke.git;a=commitdiff_plain;h=cb46e372bea4b534af64c1150ff6901e7a17eaa1 Added log warnings on monkey patch imports --- diff --git a/hooke/compat/forking.py b/hooke/compat/forking.py index 9acf816..5a161a9 100644 --- a/hooke/compat/forking.py +++ b/hooke/compat/forking.py @@ -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') diff --git a/hooke/compat/minidom.py b/hooke/compat/minidom.py index d2025cf..dc20ebe 100644 --- a/hooke/compat/minidom.py +++ b/hooke/compat/minidom.py @@ -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')