Commit ee09921c authored by Stefan H. Holek's avatar Stefan H. Holek

Fix version check. See second comment here: https://bugs.launchpad.net/zope2/+bug/257276

parent 330e9139
......@@ -95,7 +95,7 @@ def search_function(encoding):
# Return the registry entry
return entry
if sys.version_info <= (2, 4, 5):
if sys.version_info[:2] < (2, 5):
import encodings
encodings.search_function.func_code = search_function.func_code
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment