Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed the import order and syntax error

  • Loading branch information...
commit f42ce9fbe1a479c9244b319bd24a017cc28cbe71 1 parent 76d34c6
@alex authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 ajax_validation/utils.py
View
6 ajax_validation/utils.py
@@ -1,10 +1,10 @@
from django.utils.functional import Promise
from django.utils.encoding import force_unicode
try:
- from json import JSONEncoder
-except ImportError
+ from simplejson import JSONEncoder
+except ImportError:
try:
- from simplejson import JSONEncoder
+ from json import JSONEncoder
except ImportError:
from django.utils.simplejson import JSONEncoder

0 comments on commit f42ce9f

Please sign in to comment.
Something went wrong with that request. Please try again.