Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prefer simplejson over json module (performance reasons)

  • Loading branch information...
commit 0ee7b03b4aed31bd8a4631e65d62e767b56838bd 1 parent c23292e
Sean Talts authored
View
4 boto/ec2/cloudwatch/__init__.py
@@ -137,9 +137,9 @@
My server obviously isn't very busy right now!
"""
try:
- import json
-except ImportError:
import simplejson as json
+except ImportError:
+ import json
from boto.connection import AWSQueryConnection
from boto.ec2.cloudwatch.metric import Metric
View
6 boto/ec2/cloudwatch/alarm.py
@@ -23,12 +23,10 @@
from datetime import datetime
from boto.resultset import ResultSet
from boto.ec2.cloudwatch.listelement import ListElement
-
try:
- import json
-except ImportError:
import simplejson as json
-
+except ImportError:
+ import json
class MetricAlarm(object):
View
4 boto/pyami/config.py
@@ -197,9 +197,9 @@ def dump_safe(self, fp=None):
def dump_to_sdb(self, domain_name, item_name):
try:
- import json
- except ImportError:
import simplejson as json
+ except ImportError:
+ import json
sdb = boto.connect_sdb()
domain = sdb.lookup(domain_name)
View
4 boto/sns/connection.py
@@ -24,9 +24,9 @@
import boto
import uuid
try:
- import json
-except ImportError:
import simplejson as json
+except ImportError:
+ import json
#boto.set_stream_logger('sns')
View
4 boto/sqs/jsonmessage.py
@@ -23,9 +23,9 @@
from boto.exception import SQSDecodeError
import base64
try:
- import json
-except ImportError:
import simplejson as json
+except ImportError:
+ import json
class JSONMessage(MHMessage):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.