From ce73298e26b903080ae1b7e67a1a9d1ec0c5108a Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 17 Nov 2007 12:58:06 +0000 Subject: [PATCH] Fixed #5960 -- Fixed some Python 2.3 incompatibilities. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6685 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/safestring.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/utils/safestring.py b/django/utils/safestring.py index c7234af0f3..f6f4c1eb2f 100644 --- a/django/utils/safestring.py +++ b/django/utils/safestring.py @@ -57,7 +57,6 @@ class SafeString(str, SafeData): else: return SafeUnicode(data) - encode = curry(_proxy_method, method = str.encode) decode = curry(_proxy_method, method = str.decode) class SafeUnicode(unicode, SafeData): @@ -89,7 +88,6 @@ class SafeUnicode(unicode, SafeData): return SafeUnicode(data) encode = curry(_proxy_method, method = unicode.encode) - decode = curry(_proxy_method, method = unicode.decode) def mark_safe(s): """