mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
Remove unused function dgst_from_string
This commit is contained in:
parent
88abf11bd3
commit
136678ec21
12
osc/core.py
12
osc/core.py
@ -4706,18 +4706,6 @@ def get_binary_file(apiurl, prj, repo, arch,
|
||||
if target_filename.endswith('.AppImage'):
|
||||
os.chmod(target_filename, 0o755)
|
||||
|
||||
def dgst_from_string(str):
|
||||
# Python 2.5 depracates the md5 modules
|
||||
# Python 2.4 doesn't have hashlib yet
|
||||
try:
|
||||
import hashlib
|
||||
md5_hash = hashlib.md5()
|
||||
except ImportError:
|
||||
import md5
|
||||
md5_hash = md5.new()
|
||||
md5_hash.update(str)
|
||||
return md5_hash.hexdigest()
|
||||
|
||||
def dgst(file):
|
||||
|
||||
#if not os.path.exists(file):
|
||||
|
Loading…
Reference in New Issue
Block a user