More pylint fixes

This commit is contained in:
Marco Pesenti Gritti 2008-08-11 01:20:08 +02:00
parent 204e4f233a
commit c563543dea
2 changed files with 6 additions and 2 deletions

View File

@ -278,11 +278,14 @@ def delete(object_id):
logging.debug('datastore.delete') logging.debug('datastore.delete')
dbus_helpers.delete(object_id) dbus_helpers.delete(object_id)
def find(query, sorting=None, limit=None, offset=None, properties=[], def find(query, sorting=None, limit=None, offset=None, properties=None,
reply_handler=None, error_handler=None): reply_handler=None, error_handler=None):
query = query.copy() query = query.copy()
if properties is None:
properties = []
if sorting: if sorting:
query['order_by'] = sorting query['order_by'] = sorting
if limit: if limit:

View File

@ -1032,6 +1032,7 @@ class CanvasInvoker(Invoker):
self._position_hint = self.AT_CURSOR self._position_hint = self.AT_CURSOR
self._motion_hid = None self._motion_hid = None
self._release_hid = None self._release_hid = None
self._item = None
if parent: if parent:
self.attach(parent) self.attach(parent)
@ -1093,7 +1094,7 @@ class ToolInvoker(WidgetInvoker):
def _get_alignments(self): def _get_alignments(self):
parent = self._widget.get_parent() parent = self._widget.get_parent()
if parent is None: if parent is None:
return WidgetInvoker.get_alignments() return WidgetInvoker._get_alignments()
if parent.get_orientation() is gtk.ORIENTATION_HORIZONTAL: if parent.get_orientation() is gtk.ORIENTATION_HORIZONTAL:
return self.BOTTOM + self.TOP return self.BOTTOM + self.TOP