Permalink
Browse files

fixed the import order and syntax error

  • Loading branch information...
1 parent 76d34c6 commit f42ce9fbe1a479c9244b319bd24a017cc28cbe71 @alex committed Dec 15, 2008
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.