[Zope-Checkins] SVN: Zope/hotfixes/Hotfix_20080812/trunk/__init__.py fix for _aliases problem with Python 2.3 (Zope 2.8)
Andreas Jung
andreas at andreas-jung.com
Fri Aug 15 09:44:03 EDT 2008
Log message for revision 89881:
fix for _aliases problem with Python 2.3 (Zope 2.8)
Changed:
U Zope/hotfixes/Hotfix_20080812/trunk/__init__.py
-=-
Modified: Zope/hotfixes/Hotfix_20080812/trunk/__init__.py
===================================================================
--- Zope/hotfixes/Hotfix_20080812/trunk/__init__.py 2008-08-15 13:19:55 UTC (rev 89880)
+++ Zope/hotfixes/Hotfix_20080812/trunk/__init__.py 2008-08-15 13:44:01 UTC (rev 89881)
@@ -93,8 +93,10 @@
# Return the registry entry
return entry
-
+import sys
import encodings
+if sys.version_info[:2] == (2,3):
+ encodings._aliases = encodings.aliases.aliases
encodings.search_function.func_code = search_function.func_code
More information about the Zope-Checkins
mailing list