convert to bytes for python 2.6

This commit is contained in:
Konstantinos Koukopoulos 2013-11-14 17:47:03 +02:00
parent 3628e40f3c
commit bdf5a9e26b

View File

@ -25,7 +25,7 @@ class FakeKey(object):
@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