convert to bytes for python 2.6
This commit is contained in:
parent
3628e40f3c
commit
bdf5a9e26b
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class FakeKey(object):
|
||||||
@property
|
@property
|
||||||
def etag(self):
|
def etag(self):
|
||||||
value_md5 = hashlib.md5()
|
value_md5 = hashlib.md5()
|
||||||
value_md5.update(self.value)
|
value_md5.update(bytes(self.value))
|
||||||
return '"{0}"'.format(value_md5.hexdigest())
|
return '"{0}"'.format(value_md5.hexdigest())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue