flake8 fixes
This commit is contained in:
committed by
James Cameron
parent
f5c86da271
commit
3b28597486
@@ -135,7 +135,8 @@ def main():
|
||||
command = bundle.get_command()
|
||||
if command.startswith('sugar-activity'):
|
||||
if not command.startswith('sugar-activity3'):
|
||||
logging.warning("Activity written for Python 2, consider porting to Python 3.")
|
||||
logging.warning("Activity written for Python 2,\
|
||||
consider porting to Python 3.")
|
||||
activity_class = command.split(" ")[1]
|
||||
|
||||
# when an activity is started outside sugar,
|
||||
|
||||
@@ -34,7 +34,8 @@ from sugar3.graphics.palettemenu import PaletteMenuBox
|
||||
from sugar3 import profile
|
||||
|
||||
|
||||
def _(msg): return gettext.dgettext('sugar-toolkit-gtk3', msg)
|
||||
def _(msg):
|
||||
return gettext.dgettext('sugar-toolkit-gtk3', msg)
|
||||
|
||||
|
||||
def _create_activity_icon(metadata):
|
||||
@@ -337,7 +338,8 @@ class ActivityToolbar(Gtk.Toolbar):
|
||||
|
||||
if activity.metadata:
|
||||
title_button = TitleEntry(activity)
|
||||
title_button.connect('enter-key-press', lambda widget: self.emit('enter-key-press'))
|
||||
title_button.connect('enter-key-press',
|
||||
lambda widget: self.emit('enter-key-press'))
|
||||
title_button.show()
|
||||
self.insert(title_button, -1)
|
||||
self.title = title_button.entry
|
||||
|
||||
Reference in New Issue
Block a user