flake8 fixes (several remain to be fixed)

This commit is contained in:
James Cameron 2019-07-06 14:48:05 +10:00
parent 88ea8e1f4f
commit f5c86da271

View File

@ -202,7 +202,8 @@ from errno import EEXIST
from gi.repository import SugarExt
def _(msg): return gettext.dgettext('sugar-toolkit-gtk3', msg)
def _(msg):
return gettext.dgettext('sugar-toolkit-gtk3', msg)
SCOPE_PRIVATE = 'private'
@ -288,16 +289,26 @@ class Activity(Window, Gtk.Container):
Initialise an Activity.
Args:
handle (:class:`~sugar3.activity.activityhandle.ActivityHandle`): instance providing the activity id and access to the presence service which *may* provide sharing for this application
create_jobject (boolean): DEPRECATED: define if it should create a journal object if we are not resuming. The parameter is ignored, and always will be created a object in the Journal.
handle (:class:`~sugar3.activity.activityhandle.ActivityHandle`):
instance providing the activity id and access to the presence
service which *may* provide sharing for this application
create_jobject (boolean):
DEPRECATED: define if it should create a journal object if
we are not resuming. The parameter is ignored, and always
will be created a object in the Journal.
**Signals:**
* **shared** - the activity has been shared on a network in order that other users may join,
* **joined** - the activity has joined with other instances of the activity to create a shared network activity.
* **shared** - the activity has been shared on a network in
order that other users may join,
* **joined** - the activity has joined with other instances of
the activity to create a shared network activity.
Side effects:
* sets the gdk screen DPI setting (resolution) to the Sugar screen resolution.
* sets the gdk screen DPI setting (resolution) to the Sugar
screen resolution.
* connects our "destroy" message to our _destroy_cb method.
@ -1097,8 +1108,8 @@ class Activity(Window, Gtk.Container):
'''
self._invites_queue.append((account_path, contact_id))
if (self.shared_activity is None
or not self.shared_activity.props.joined):
if (self.shared_activity is None or
not self.shared_activity.props.joined):
self.share(True)
else:
self._send_invites()
@ -1498,6 +1509,7 @@ class _ClientHandler(dbus.service.Object):
else:
logging.debug('InvalidArgument')
_session = None