X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fiface.py;h=e2d6a4c89d5c9c1234726d420ecad54d8977cf57;hb=5e92533267cb41c42af1243592c530304d18bff5;hp=887d69f35793da7322215342dd09217732095c90;hpb=c5a63fc144c59342e32304e4e86b2bad479a8187;p=pygost.git diff --git a/pygost/iface.py b/pygost/iface.py index 887d69f..e2d6a4c 100644 --- a/pygost/iface.py +++ b/pygost/iface.py @@ -1,6 +1,8 @@ from abc import ABCMeta from abc import abstractmethod +from pygost.utils import hexenc + # This function is taken from six package as is def add_metaclass(metaclass): @@ -42,7 +44,7 @@ class PEP247(object): """Return the hash value as a string containing 8-bit data. """ - @abstractmethod def hexdigest(self): """Return the hash value as a string containing hexadecimal digits. """ + return hexenc(self.digest())