author | Sven Velt <sven@velt.de> | |
Wed, 16 Dec 2009 16:35:45 +0000 (17:35 +0100) | ||
committer | Sven Velt <sven@velt.de> | |
Wed, 16 Dec 2009 16:35:45 +0000 (17:35 +0100) | ||
commit | f6f4269adfe6910bc4eeb6bbe63036a32da30147 | |
tree | ab53de52058d05d162274b1f16cf9e7836c55b83 | tree | snapshot |
parent | 6c581e42fdb180c9546e74510fab30e0ecef8f11 | commit | diff |
Import md5 from hashlib/md5, dep. on Py version
2.4: Only "md5" available
2.5: "md5" and "hashlib" work
2.6: Only "hashlib"
So try to "from hashlib import md5" and if it doesn't work just do a
"from md5 import md5" and just use "md5(___).hexdigest()" in the code.
2.4: Only "md5" available
2.5: "md5" and "hashlib" work
2.6: Only "hashlib"
So try to "from hashlib import md5" and if it doesn't work just do a
"from md5 import md5" and just use "md5(___).hexdigest()" in the code.
nagixsc_conf2http.py | diff | blob | history | |
nagixsc_http2nagios.py | diff | blob | history |