bzr on Windows

Andrew Bennetts andrew at canonical.com
Tue Sep 27 02:06:17 BST 2005


On Mon, Sep 26, 2005 at 06:52:20PM +1000, Robert Collins wrote:
[...]
> This is the PEP8 way:
> def open_containing(url):
>     """Open an existing branch which contains url.
> 
>        This probes for a branch at url, and searches upwards from there.
>        """
> 
> Note that the first line is a sentence which makes sense on its own, and
> the blank line before the rest of the docstring.

To be really fussy, the PEP 8 way actually is:

def open_containing(url):
    """Open an existing branch which contains url.

    This probes for a branch at url, and searches upwards from there.
    """

i.e. indentation of text should be at the same level as the quotes.

See http://www.python.org/peps/pep-0008.html and
http://www.python.org/peps/pep-0257.html for details :)

</nitpick>

-Andrew.





More information about the bazaar mailing list