mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
updated cmd5.py
This commit is contained in:
parent
cdc5f26900
commit
d754cd9d19
|
@ -1,5 +1,4 @@
|
|||
import md5, sys, re
|
||||
m = md5.new()
|
||||
import hashlib, sys, re
|
||||
|
||||
alphanum = "0123456789abcdefghijklmnopqrstuvwzyxABCDEFGHIJKLMNOPQRSTUVWXYZ_"
|
||||
|
||||
|
@ -29,4 +28,4 @@ f = ""
|
|||
for filename in sys.argv[1:]:
|
||||
f += cstrip([l.strip() for l in file(filename)])
|
||||
|
||||
print '#define GAME_NETVERSION_HASH "%s"' % md5.new(f).hexdigest().lower()[16:]
|
||||
print '#define GAME_NETVERSION_HASH "%s"' % hashlib.md5(f).hexdigest().lower()[16:]
|
||||
|
|
Loading…
Reference in a new issue