Skip to content

Commit

Permalink
Adding Python 2.5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Jan 10, 2012
1 parent 1f27e6b commit 7e1b053
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wysiwyg_forms/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import json
try:
import json
except ImportError:
import simplejson as json

from django.db import models
from django import forms
Expand Down
3 changes: 3 additions & 0 deletions wysiwyg_forms/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Python 2.5 compatibility
from __future__ import with_statement

from django import forms
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import reverse
Expand Down

0 comments on commit 7e1b053

Please sign in to comment.