Skip to content

Commit

Permalink
- Since it's fixed after 2.4.5, no reason to apply the patch otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
sidnei committed Oct 26, 2008
1 parent 069d5b9 commit 3702eac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 3702eac

Please sign in to comment.