Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 209396 Details for
Bug 292055
media-gfx/mirage-0.9.3 warn about deprecated md5 module
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to use hashlib instead of md5 if python version is >=2.5
mirage-0.9.3-hashlib_migration.patch (text/plain), 921 bytes, created by
Michael Perlov
on 2009-11-06 07:45:47 UTC
(
hide
)
Description:
Patch to use hashlib instead of md5 if python version is >=2.5
Filename:
MIME Type:
Creator:
Michael Perlov
Created:
2009-11-06 07:45:47 UTC
Size:
921 bytes
patch
obsolete
>--- mirage-0.9.3.orig/mirage.py 2008-03-27 06:05:28.000000000 +0200 >+++ mirage-0.9.3/mirage.py 2009-11-06 09:32:15.000000000 +0200 >@@ -29,7 +29,13 @@ > import os, sys, getopt, ConfigParser, string, gc > import random, urllib, gobject, gettext, locale > import stat, time, subprocess, shutil, filecmp >-import tempfile, socket, md5, threading >+import tempfile, socket, threading >+try: >+ import hashlib >+ HAS_HASHLIB = True >+except: >+ HAS_HASHLIB= False >+ import md5 > try: > import imgfuncs > HAS_IMGFUNCS = True >@@ -873,7 +879,10 @@ > def thumbnail_get_name(self, image_name): > filename = os.path.expanduser('file://' + image_name) > uriname = os.path.expanduser('file://' + urllib.pathname2url(image_name)) >- m = md5.new() >+ if HAS_HASHLIB: >+ m = hashlib.md5() >+ else: >+ m = md5.new() > m.update(uriname) > mhex = m.hexdigest() > mhex_filename = os.path.expanduser('~/.thumbnails/normal/' + mhex + '.png')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 292055
: 209396 |
209398
|
209399