diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-07 14:40:58 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-07 14:40:58 +0000 |
| commit | d754cd9d19334fcd0c956ec3074547c621b1bbab (patch) | |
| tree | 331335e84465b7de7c784083f1d79e29d89f05ca | |
| parent | cdc5f26900dc10e10679ba76a30f195e8b3f5505 (diff) | |
| download | zcatch-d754cd9d19334fcd0c956ec3074547c621b1bbab.tar.gz zcatch-d754cd9d19334fcd0c956ec3074547c621b1bbab.zip | |
updated cmd5.py
| -rw-r--r-- | scripts/cmd5.py | 5 |
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:] |