ran python 2to3 convert
Esse commit está contido em:
@@ -1,5 +1,5 @@
|
|||||||
[Plugin]
|
[Plugin]
|
||||||
Loader=python
|
Loader=python3
|
||||||
Module=ArtDisplay
|
Module=ArtDisplay
|
||||||
IAge=2
|
IAge=2
|
||||||
Depends=rb;artsearch
|
Depends=rb;artsearch
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ from gi.repository import RB
|
|||||||
import gettext
|
import gettext
|
||||||
gettext.install('rhythmbox', RB.locale_dir())
|
gettext.install('rhythmbox', RB.locale_dir())
|
||||||
|
|
||||||
import urllib
|
import urllib.request, urllib.parse, urllib.error
|
||||||
|
|
||||||
FADE_STEPS = 10
|
FADE_STEPS = 10
|
||||||
FADE_TOTAL_TIME = 1000
|
FADE_TOTAL_TIME = 1000
|
||||||
@@ -133,7 +133,7 @@ class FadingImage (Gtk.Misc):
|
|||||||
def theme_changed (self, icon_theme):
|
def theme_changed (self, icon_theme):
|
||||||
try:
|
try:
|
||||||
self.reload_anim_frames ()
|
self.reload_anim_frames ()
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
warn ("Throbber animation not loaded: %s" % e, Warning)
|
warn ("Throbber animation not loaded: %s" % e, Warning)
|
||||||
self.reload_util_pixbufs ()
|
self.reload_util_pixbufs ()
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ class FadingImage (Gtk.Misc):
|
|||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
missing_pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size (self.missing_image, self.size, self.size)
|
missing_pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size (self.missing_image, self.size, self.size)
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
warn ("Missing artwork icon not found: %s" % e, Warning)
|
warn ("Missing artwork icon not found: %s" % e, Warning)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -383,7 +383,7 @@ class ArtDisplayPlugin (GObject.GObject, Peas.Activatable):
|
|||||||
|
|
||||||
if isinstance(data, GdkPixbuf.Pixbuf):
|
if isinstance(data, GdkPixbuf.Pixbuf):
|
||||||
self.current_pixbuf = data
|
self.current_pixbuf = data
|
||||||
uri = "file://" + urllib.pathname2url(filename)
|
uri = "file://" + urllib.request.pathname2url(filename)
|
||||||
self.art_widget.set (entry, self.current_pixbuf, uri, None, None, False)
|
self.art_widget.set (entry, self.current_pixbuf, uri, None, None, False)
|
||||||
else:
|
else:
|
||||||
self.art_widget.set (entry, None, None, None, None, False)
|
self.art_widget.set (entry, None, None, None, None, False)
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário