Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Removed all the old "None" references from everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Moyer authored and Chris Moyer committed Sep 9, 2010
1 parent dcfb409 commit 305d173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boto/sdb/db/manager/sdbmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def encode_map(self, prop, value):
if Model in item_type.mro():
item_type = Model
encoded_value = self.encode(item_type, value[key])
if encoded_value != None and encoded_value != "None":
if encoded_value != None:
new_value.append('%s:%s' % (key, encoded_value))
return new_value

Expand All @@ -122,7 +122,7 @@ def decode_list(self, prop, value):
item_type = getattr(prop, "item_type")
dec_val = {}
for val in value:
if val != "None" and val != None:
if val != None:
k,v = self.decode_map_element(item_type, val)
try:
k = int(k)
Expand Down Expand Up @@ -462,7 +462,7 @@ def count(self, cls, filters, quick=True):
def _build_filter(self, property, name, op, val):
if val == None:
if op in ('is','='):
return "`%(name)s` is null or `%(name)s` = 'None'" % {"name": name}
return "`%(name)s` is null" % {"name": name}
elif op in ('is not', '!='):
return "`%s` is not null" % name
else:
Expand Down

0 comments on commit 305d173

Please sign in to comment.