Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix lack of basestring in python 3 using six

  • Loading branch information...
commit d377d9c05528fab060b945e48339751585bb963d 1 parent 50971d4
Thomas Grainger authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  django_browserid/helpers.py
  2. +1 −1  setup.py
3  django_browserid/helpers.py
View
@@ -12,6 +12,7 @@
FORM_JAVASCRIPT)
from django_browserid.util import static_url
+from six import string_types
# If funfactory is available, we want to use it's locale-aware reverse instead
# of Django's reverse, so we try to import funfactory's first and fallback to
@@ -61,7 +62,7 @@ def browserid_button(text=None, next=None, link_class=None, attrs=None,
href to use for the link.
"""
attrs = attrs or {}
- if isinstance(attrs, basestring):
+ if isinstance(attrs, string_types):
attrs = json.loads(attrs)
attrs.setdefault('class', link_class)
2  setup.py
View
@@ -27,7 +27,7 @@ def find_version(*file_paths):
author_email='mkelly@mozilla.com',
url='https://github.com/mozilla/django-browserid',
license='MPL v2.0',
- install_requires=['requests>=0.9.1', 'fancy_tag==0.2.0'],
+ install_requires=['requests>=0.9.1', 'fancy_tag==0.2.0', 'six>=1.3'],
test_suite="runtests.runtests",
include_package_data=True,
classifiers=[
Please sign in to comment.
Something went wrong with that request. Please try again.