Some fixes for dynamodb and python 3.
This commit is contained in:
parent
83481b589b
commit
31b01d27cf
3 changed files with 6 additions and 4 deletions
|
|
@ -153,6 +153,9 @@ class Table(object):
|
|||
def __nonzero__(self):
|
||||
return True
|
||||
|
||||
def __bool__(self):
|
||||
return self.__nonzero__()
|
||||
|
||||
def put_item(self, item_attrs):
|
||||
hash_value = DynamoType(item_attrs.get(self.hash_key_attr))
|
||||
if self.has_range_key:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue