<div class="gmail_extra"><br><br><div class="gmail_quote">2012/4/25 Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
El día 25 de abril de 2012 10:50, Manuel Kaufmann <<a href="mailto:humitos@gmail.com">humitos@gmail.com</a>> escribió:<br>
<div class="im">> 2012/4/25 Manuel Quiñones <<a href="mailto:manuq@laptop.org">manuq@laptop.org</a>>:<br>
>> One more little thing, we use one import per line, is a style<br>
>> decision, so please do three lines here.<br>
><br>
> Why?<br>
><br>
> What I did is PEP8 syntax: <a href="http://www.python.org/dev/peps/pep-0008/#imports" target="_blank">http://www.python.org/dev/peps/pep-0008/#imports</a><br>
<br>
</div>Good question, should be mentioned in this page but it isn't:<br>
<br>
<a href="http://wiki.sugarlabs.org/go/Development_Team/Code_guidelines" target="_blank">http://wiki.sugarlabs.org/go/Development_Team/Code_guidelines</a><br>
<br>
However, see that all Sugar code follows one import per line, so you<br>
should do it for consistency. Yeah the code in activities is up to<br>
the maintainer but would be good to follow Sugar style. Ar least<br>
Browse does so.<br>
<div class="im HOEnZb"><br></div></blockquote><div><br></div><div>pep8 shouldn't complain about various ''from imports'' in one line, the only case where it complains is when you have multiple ''imports''.</div>
<div>(as the guide says).</div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im HOEnZb">
><br>
> --<br>
> Kaufmann Manuel<br>
> Blog: <a href="http://humitos.wordpress.com/" target="_blank">http://humitos.wordpress.com/</a><br>
> Porfolio: <a href="http://fotos.mkaufmann.com.ar/" target="_blank">http://fotos.mkaufmann.com.ar/</a><br>
> PyAr: <a href="http://www.python.com.ar/" target="_blank">http://www.python.com.ar/</a><br>
<br>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
.. manuq ..<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br></div>