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:
commit
5501501fc4
1 changed files with 0 additions and 8 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue