[Bugs] #2479 UNSP: Make write pep8 complaint
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Oct 27 07:11:49 EDT 2010
#2479: Make write pep8 complaint
------------------------------------------+---------------------------------
Reporter: godiard | Owner: uwog
Type: task | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: Write | Version: 0.90.x
Severity: Unspecified | Keywords:
Status_field: Unconfirmed | Distribution: Unspecified
Seeta_dev: |
------------------------------------------+---------------------------------
Comment(by erikos):
Thanks Gonzalo for this effort! These changes should go only into the
master branch, as they are cleanups. Extra points for running pylint as
well. There are some of the warnings that can be fixes as well. Let me
know if you are stuck by some, I probably know already if it can be easily
fixed or not. You should probably assign the ticket to you as you are
working on it.
I will do a comment per patch.
0004-make-AbiWordActivity-pep8-complaint.patch
{{{
249 self._shared_activity.connect('buddy-joined',
250 self._buddy_joined_cb)
}}}
In emacs I just use tab for that, the next line then gets aligned under
the buddy joined. Same below:
{{{
290 logger.debug('Tube address: %s', \
291
self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].GetDBusTubeAddress(id))
}}}
I would probably put it in two lines: address = self.tubes_chan[te... and
then logger.debug('Tube address: %s', address)
There are some others where it is good to use tab in this patch (e.g. 448,
449).
466: that should be under the logger (the '#'), like in _buddy_left_cb.
510: Wow, that one sounds mystic, wonder what the magic number 3000 is :/
Extra points if you know how to make that more readable.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2479#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list