Patch by cscott to load the profile keys lazily.
Some style and pylint complaints fixes by me. Fix #5538
This commit is contained in:
@@ -24,7 +24,6 @@ import logging
|
||||
import gobject
|
||||
import gtk
|
||||
import hippo
|
||||
import rsvg
|
||||
import cairo
|
||||
|
||||
from sugar.graphics.style import Color
|
||||
@@ -58,6 +57,7 @@ class _SVGLoader(object):
|
||||
logging.error(
|
||||
'Icon %s, entity %s is invalid.', file_name, entity)
|
||||
|
||||
import rsvg # XXX this is very slow! why?
|
||||
return rsvg.Handle(data=icon)
|
||||
|
||||
class _IconInfo(object):
|
||||
|
||||
Reference in New Issue
Block a user