[Sugar-devel] [PATCH Help v3] Migrated to Gtk3 and WebKit.WebView SL #3466
Manuel Quiñones
manuq at laptop.org
Wed Apr 25 11:30:44 EDT 2012
El día 25 de abril de 2012 11:08, Rafael Ortiz
<rafael at activitycentral.com> escribió:
>
>
> 2012/4/25 Manuel Quiñones <manuq at laptop.org>
>>
>> El día 25 de abril de 2012 10:50, Manuel Kaufmann <humitos at gmail.com>
>> escribió:
>> > 2012/4/25 Manuel Quiñones <manuq at laptop.org>:
>> >> One more little thing, we use one import per line, is a style
>> >> decision, so please do three lines here.
>> >
>> > Why?
>> >
>> > What I did is PEP8 syntax:
>> > http://www.python.org/dev/peps/pep-0008/#imports
>>
>> Good question, should be mentioned in this page but it isn't:
>>
>> http://wiki.sugarlabs.org/go/Development_Team/Code_guidelines
>>
>> However, see that all Sugar code follows one import per line, so you
>> should do it for consistency. Yeah the code in activities is up to
>> the maintainer but would be good to follow Sugar style. Ar least
>> Browse does so.
>>
>
> pep8 shouldn't complain about various ''from imports'' in one line, the only
> case where it complains is when you have multiple ''imports''.
> (as the guide says).
Both forms pass PEP8, but we use one import per line in Sugar. Is a
matter of style, that's all.
--
.. manuq ..
More information about the Sugar-devel
mailing list