--- a/ProjectDjango/LexerDjango.py	2008-12-30 17:50:14.000000000 +0300
+++ b/ProjectDjango/LexerDjango.py	2010-06-19 23:30:20.655228688 +0400
@@ -212,7 +212,7 @@
         eolLen = len(self.editor.getLineSeparator())
         cpos = 0
         self.editor.startStyling(cpos, 0x1f)
-        for token, txt in self.__lexer.get_tokens(unicode(self.editor.text())[:end + 1]):
+        for token, txt in self.__lexer.get_tokens(str(self.editor.text())[:end + 1]):
             style = TOKEN_MAP.get(token, DJANGO_DEFAULT)
             if style == DJANGO_PREPROCESSOR and txt.startswith(u'#'):
                 style = DJANGO_COMMENT
