about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2009-06-07 14:40:58 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-06-07 14:40:58 +0000
commitd754cd9d19334fcd0c956ec3074547c621b1bbab (patch)
tree331335e84465b7de7c784083f1d79e29d89f05ca
parentcdc5f26900dc10e10679ba76a30f195e8b3f5505 (diff)
downloadzcatch-d754cd9d19334fcd0c956ec3074547c621b1bbab.tar.gz
zcatch-d754cd9d19334fcd0c956ec3074547c621b1bbab.zip
updated cmd5.py
-rw-r--r--scripts/cmd5.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/cmd5.py b/scripts/cmd5.py
index fe1f9d2a..85d3045b 100644
--- a/scripts/cmd5.py
+++ b/scripts/cmd5.py
@@ -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:]