convert to bytes for python 2.6
This commit is contained in:
parent
3628e40f3c
commit
bdf5a9e26b
@ -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…
Reference in New Issue
Block a user