From 9c44751c082a55d108bc05f075b34d523532404d Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Thu, 24 May 2007 00:48:36 +0000 Subject: [PATCH] unicode: Removed some redundant code. git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5321 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/html.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/utils/html.py b/django/utils/html.py index 311a4d5c35..79b0d6d5af 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -25,8 +25,6 @@ del x # Temporary variable def escape(html): "Returns the given HTML with ampersands, quotes and carets encoded" - if not isinstance(html, basestring): - html = force_unicode(html) return force_unicode(html).replace('&', '&').replace('<', '<').replace('>', '>').replace('"', '"').replace("'", ''') escape = allow_lazy(escape, unicode)