Update moto/dynamodb2/models.py

Co-Authored-By: pvbouwel <petervanbouwel@gmail.com>
This commit is contained in:
Bert Blommers 2020-04-14 07:48:13 +01:00 committed by GitHub
parent e82e1e3f39
commit 1e1fe3ee4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,7 +286,7 @@ class Item(BaseModel):
return "Item: {0}".format(self.to_json())
def size(self):
return sum([bytesize(key) + value.size() for key, value in self.attrs.items()])
return sum(bytesize(key) + value.size() for key, value in self.attrs.items())
def to_json(self):
attributes = {}