Comment 5 for bug 338285

Revision history for this message
ceripald (metriccq) wrote :

This warning was annoying me when compiling my LaTeX document in Gedit. I assume that there is some method of running the above patch so that it updates your util.py file, but I couldn't figure it out. In the end, I just opened up the util.py file and changed the appropriate lines, which succeeded in getting rid of the Gedit warning. So thanks to the person who wrote the patch, and here are the lines to change if anyone else is as python baffled as I am:

first run 'sudo gedit /usr/share/rubber/rubber/util.py'
then change 'import md5' to 'import hashlib' (which was line 8 in my util.py file)
and 'm = md5.new()' to 'm = hashlib.md5()' (which was line 22 in my util.py file)

Apologies if this is not the correct place to post this info.