Merge pull request #710 from zachwill/develop

Add try/catch for simplejson vs json
This commit is contained in:
Kenneth Reitz
2012-07-07 21:21:54 -07:00
+5 -1
View File
@@ -7,10 +7,14 @@ requests.models
This module contains the primary objects that power Requests.
"""
import json
import os
from datetime import datetime
try:
import simplejson as json
except ImportError:
import json
from .hooks import dispatch_hook, HOOKS
from .structures import CaseInsensitiveDict
from .status_codes import codes