summaryrefslogtreecommitdiff
path: root/boto/ecs
diff options
context:
space:
mode:
authorAustin Marshall <oxtopus@gmail.com>2013-12-18 22:43:32 -0600
committerAustin Marshall <oxtopus@gmail.com>2013-12-18 22:43:32 -0600
commit125a8394143be713e6683bac34d7842421fe8b70 (patch)
tree4f21a53baf018500cb1264718c8d0448a29bd5e2 /boto/ecs
parentdcf3cbd51f5d997eb84a5bf5ec9ff20f322fa44f (diff)
downloadboto-125a8394143be713e6683bac34d7842421fe8b70.tar.gz
Consistent use of identity comparison (`is`/`is not`) for None
Diffstat (limited to 'boto/ecs')
-rw-r--r--boto/ecs/__init__.py2
-rw-r--r--boto/ecs/item.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/boto/ecs/__init__.py b/boto/ecs/__init__.py
index cbaf478a..5f0e2640 100644
--- a/boto/ecs/__init__.py
+++ b/boto/ecs/__init__.py
@@ -66,7 +66,7 @@ class ECSConnection(AWSQueryConnection):
boto.log.error('%s' % body)
raise self.ResponseError(response.status, response.reason, body)
- if itemSet == None:
+ if itemSet is None:
rs = ItemSet(self, action, params, page)
else:
rs = itemSet
diff --git a/boto/ecs/item.py b/boto/ecs/item.py
index 29588b86..5b739ae2 100644
--- a/boto/ecs/item.py
+++ b/boto/ecs/item.py
@@ -110,7 +110,7 @@ class ItemSet(ResponseGroup):
def startElement(self, name, attrs, connection):
if name == "Item":
self.curItem = Item(self._connection)
- elif self.curItem != None:
+ elif self.curItem is not None:
self.curItem.startElement(name, attrs, connection)
return None
@@ -123,13 +123,13 @@ class ItemSet(ResponseGroup):
self.objs.append(self.curItem)
self._xml.write(self.curItem.to_xml())
self.curItem = None
- elif self.curItem != None:
+ elif self.curItem is not None:
self.curItem.endElement(name, value, connection)
return None
def next(self):
"""Special paging functionality"""
- if self.iter == None:
+ if self.iter is None:
self.iter = iter(self.objs)
try:
return self.iter.next()