Commit 95fcf7de authored by Sidnei da Silva's avatar Sidnei da Silva

- Since it's fixed after 2.4.5, no reason to apply the patch otherwise

parent 74ac0363
......@@ -13,6 +13,8 @@
# Written by Marc-Andre Lemburg (mal@lemburg.com).
# (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
import sys
def search_function(encoding):
# Cache lookup
......@@ -93,7 +95,7 @@ def search_function(encoding):
# Return the registry entry
return entry
import encodings
encodings.search_function.func_code = search_function.func_code
if sys.version_info <= (2, 4, 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