[Sugar-devel] [PATCH sugar v2 18/21] pylint cleanup: fix indentation
Simon Schampijer
simon at schampijer.de
Wed Nov 24 13:19:52 EST 2010
On 11/19/2010 10:13 PM, Sascha Silbe wrote:
> Reviewed-by: James Cameron<quozl at laptop.org>
> CC: Aleksey Lim<alsroot at member.fsf.org>
> Signed-off-by: Sascha Silbe<sascha-pgp at silbe.org>
>
> diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py
> index be60c4c..c25e523 100644
> --- a/src/jarabe/desktop/activitieslist.py
> +++ b/src/jarabe/desktop/activitieslist.py
> @@ -420,8 +420,8 @@ class ActivityListPalette(ActivityPalette):
> menu_item.show()
>
> if not os.access(activity_info.get_path(), os.W_OK) or \
> - registry.is_activity_protected(self._bundle_id):
> - menu_item.props.sensitive = False
> + registry.is_activity_protected(self._bundle_id):
> + menu_item.props.sensitive = False
>
> def __destroy_cb(self, palette):
> self.disconnect(self._activity_changed_sid)
Shouldn't
registry.is_activity_protected(self._bundle_id):
be inlined by 8?
Would at least be better readable.
Simon
More information about the Sugar-devel
mailing list