summaryrefslogtreecommitdiff
path: root/django/utils/jslex.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2014-10-14 21:55:54 +0200
committerFlorian Apolloner <florian@apolloner.eu>2014-10-15 15:09:35 +0200
commit2ccbaba1f26ae262b301aa9ae1d41efed2f6aee9 (patch)
treee2d1fbbdaaa015191fa98aa99c0a13caadc7c367 /django/utils/jslex.py
parent4443c6f6d8e481db8142e79391ad0b65ebcf46e3 (diff)
Added unicode_literals to the jslexer.
This ensure that ''.join(c) in jslex.py always returns text.
Diffstat (limited to 'django/utils/jslex.py')
-rw-r--r--django/utils/jslex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/jslex.py b/django/utils/jslex.py
index e54d021bbe..35bdc57e1a 100644
--- a/django/utils/jslex.py
+++ b/django/utils/jslex.py
@@ -1,5 +1,6 @@
"""JsLex: a lexer for Javascript"""
# Originally from https://bitbucket.org/ned/jslex
+from __future__ import unicode_literals
import re