diff --git a/django_js_reverse/core.py b/django_js_reverse/core.py
index <HASH>..<HASH> 100755
--- a/django_js_reverse/core.py
+++ b/django_js_reverse/core.py
@@ -18,10 +18,7 @@ try:
 except ImportError:
     from django.core import urlresolvers
 
-if sys.version < '3':
-    text_type = unicode  # NOQA
-else:
-    text_type = str
+text_type = type(u'')
 
 JS_IDENTIFIER_RE = re.compile(r'^[$A-Z_][\dA-Z_$]*$')
use simple feature detection to get text_type