Add support of Python 2.4 and 2.5 with simplejson.

This commit is contained in:
Alexander Shorin
2011-12-25 22:27:02 +04:00
parent 99f71983e7
commit 30a61e17a1
2 changed files with 28 additions and 2 deletions

View File

@@ -39,8 +39,12 @@ __version__ = '0.1'
__website__ = 'https://github.com/stefankoegl/python-json-patch'
__license__ = 'Modified BSD License'
import sys
import json
if sys.version_info < (2, 6):
import simplejson as json
else:
import json
class JsonPatchException(Exception):