[Checkins] SVN:	Zope/trunk/lib/python/Products/PythonScripts/patches.py -	Since it's fixed after 2.4.5, no reason to apply the patch otherwise
    Sidnei da Silva 
    sidnei at enfoldsystems.com
       
    Sun Oct 26 11:02:32 EDT 2008
    
    
  
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 (mal at lemburg.com).
 # (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
-
    
    
More information about the Checkins
mailing list