Pep8 and pyflakes fixes

This commit is contained in:
Gonzalo Odiard 2015-05-15 18:40:09 -03:00 committed by Sam Parkinson
parent 2186c53aeb
commit 8224fefc50
3 changed files with 2 additions and 4 deletions

View File

@ -22,7 +22,6 @@ STABLE.
import logging
from gi.repository import GObject
from gi.repository import Pango
from gi.repository import Gtk
from sugar3.graphics.icon import Icon

View File

@ -28,7 +28,6 @@ from gi.repository import GLib
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GObject
from gi.repository import Pango
from sugar3.graphics import animator
from sugar3.graphics import style
@ -285,7 +284,8 @@ class Palette(PaletteWindow):
self._secondary_label.set_max_width_chars(
style.MENU_WIDTH_CHARS)
self._secondary_label.set_line_wrap(True)
self._secondary_label.set_ellipsize(style.ELLIPSIZE_MODE_DEFAULT)
self._secondary_label.set_ellipsize(
style.ELLIPSIZE_MODE_DEFAULT)
self._secondary_label.set_lines(NO_OF_LINES)
self._secondary_label.set_justify(Gtk.Justification.FILL)
else:

View File

@ -16,7 +16,6 @@
from gi.repository import GObject
from gi.repository import Gtk
from gi.repository import Pango
from sugar3.graphics.icon import Icon
from sugar3.graphics import style