Fix some deprecation warnings and imports

This commit is contained in:
Andrew Resch 2009-02-20 14:32:28 +00:00
parent 7abd8efd81
commit 52e39d4fe9
2 changed files with 5 additions and 2 deletions

View file

@ -24,7 +24,10 @@
import os
from sha import sha
try:
from hashlib import sha1 as sha
except ImportError:
from sha import sha
import urlparse
from deluge import bencode

View file

@ -241,7 +241,7 @@ class FilterTreeView(component.Component):
try: #assume we could get trashed images here..
pix = gtk.gdk.pixbuf_new_from_file_at_size(filename, 16, 16)
except Exception, e:
log.debug(e.message)
log.debug(e)
if not pix:
pix = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, 16, 16)