PR#1984: Remove deprecated md5/sha1 constructors

Merges #1984
https://pagure.io/koji/pull-request/1984

Fixes: #1491
https://pagure.io/koji/issue/1491
Remove deprecated md5/sha1 constructors
This commit is contained in:
Tomas Kopecek 2020-02-04 09:23:53 +01:00
commit 5501501fc4

View file

@ -46,14 +46,6 @@ from koji.xmlrpcplus import DateTime
# imported from kojiweb and kojihub
def md5_constructor(*args, **kwargs):
deprecated("md5_constructor is deprecated in favour of hashlib.md5 and will be removed in 1.21")
return hashlib.md5(*args, **kwargs)
def sha1_constructor(*args, **kwargs):
deprecated("sha1_constructor is deprecated in favour of hashlib.md5 and will be removed in 1.21")
return hashlib.sha1(*args, **kwargs)
def deprecated(message):
"""Print deprecation warning"""
with warnings.catch_warnings():