[Sugar-devel] [PATCH 06/21 sugar-toolkit] PEP8 cleanup: fix inline comment spacing

Sascha Silbe sascha-ml-reply-to-2010-3 at silbe.org
Fri Nov 19 11:31:09 EST 2010


Excerpts from Simon Schampijer's message of Fri Oct 29 12:50:30 +0200 2010:

[reordered quotes to make the context clear]

[src/sugar/presence/activity.py]
> > @@ -683,11 +683,16 @@ class _JoinCommand(_BaseCommand):
> >           # since only the owner can change invite-only, that would break
> >           # activity scope changes.
> >           props = {
> > -            'anonymous': False,   # otherwise buddy resolution breaks
> > -            'invite-only': False, # anyone who knows about the channel can join
> > -            'invite-restricted': False,     # so non-owners can invite others
> > -            'persistent': False,  # vanish when there are no members
> > -            'private': True,      # don't appear in server room lists
> > +            # otherwise buddy resolution breaks
> > +            'anonymous': False,
> > +            # anyone who knows about the channel can join
> > +            'invite-only': False,
> > +            # so non-owners can invite others
> > +            'invite-restricted': False,
> > +            # vanish when there are no members
> > +            'persistent': False,
> > +            # don't appear in server room lists
> > +            'private': True,
> >           }

> In the second case in this patch I think having them in the same line is 
> easier to read. Might be taste. A lot of those comments are not that 
> helpful anyway - we should revise them in another go.

At least one of the existing comments was past the 79 character boundary,
so I would have had to either put it on two lines (but still inline) or
make just that one comment non-inline. I don't like either of those
choices. :)

Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101119/d9e357b6/attachment-0001.pgp>


More information about the Sugar-devel mailing list