Commits

Matthew Schinckel committed 7261c3a

Remove use of unicode()

  • Participants
  • Parent commits f7486ce

Comments (0)

Files changed (1)

File jsonfield/forms.py

                 return json.loads(value)
             except Exception as exc:
                 raise forms.ValidationError(
-                    'JSON decode error: %s' % (unicode(exc),)
+                    'JSON decode error: %s' % (six.u(exc),)
                 )
         else:
             return value