Skip to content

Commit

Permalink
Use simplejson when json module not available
Browse files Browse the repository at this point in the history
If python<2.6 is used (including Jython), the json module isn't yet available in the standard library. 
Using simplejson as a fallback, if available, would be nice.
  • Loading branch information
staer committed Sep 18, 2012
1 parent de5a35f commit ae95d51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion boto/iam/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json
try:
import json
except ImportError:
import simplejson as json

import boto
import boto.jsonresponse
Expand Down

0 comments on commit ae95d51

Please sign in to comment.