I'm using an older version of PLY that uses the md5 module (among others):
import re, types, sys, cStringIO, md5, os.path
... although the script runs but not without this error:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
How do I fix it so the error goes away?
Thanks
I think the warning message is quite straightforward. You need to:
from hashlib import md5
or you can use python < 2.5, http://docs.python.org/library/md5.html
That's not an error, that's a warning.
If you still insist on getting rid of it then modify the code so that it uses hashlib
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With