Log message for revision 92595: - Since it's fixed after 2.4.5, no reason to apply the patch otherwise
Changed: U Zope/trunk/lib/python/Products/PythonScripts/patches.py -=- Modified: Zope/trunk/lib/python/Products/PythonScripts/patches.py =================================================================== --- Zope/trunk/lib/python/Products/PythonScripts/patches.py 2008-10-26 14:31:48 UTC (rev 92594) +++ Zope/trunk/lib/python/Products/PythonScripts/patches.py 2008-10-26 15:02:32 UTC (rev 92595) @@ -13,6 +13,8 @@ # Written by Marc-Andre Lemburg ([EMAIL PROTECTED]). # (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. +import sys + def search_function(encoding): # Cache lookup @@ -93,7 +95,7 @@ # Return the registry entry return entry +if sys.version_info <= (2, 4, 5): + import encodings + encodings.search_function.func_code = search_function.func_code -import encodings -encodings.search_function.func_code = search_function.func_code - _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins