Skip to content

Commit

Permalink
convert to bytes for python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kouk committed Nov 14, 2013
1 parent 3628e40 commit bdf5a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moto/s3/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def append_to_value(self, value):
@property
def etag(self):
value_md5 = hashlib.md5()
value_md5.update(self.value)
value_md5.update(bytes(self.value))
return '"{0}"'.format(value_md5.hexdigest())

@property
Expand Down

0 comments on commit bdf5a9e

Please sign in to comment.