Skip to content

Commit

Permalink
Fix typo and minor reword in python guide
Browse files Browse the repository at this point in the history
Co-authored-by: Marina Moore <mnm678@users.noreply.github.com>
Co-authored-by: Joshua Lock <jlock@vmware.com>
  • Loading branch information
3 people committed Dec 1, 2020
1 parent 49b4aa8 commit 1ed388a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

There are many excellent Python style guides out there, usually based on [PEP
8](https://www.python.org/dev/peps/pep-0008/) -- the mother of all Python style
guides. Following the principle of reuse, we recommend an existing guides that
guides. Following the principle of reuse, we recommend an existing guide that
we find suitable, and only add a few refinements and accentuation to it. In
short:

Expand Down Expand Up @@ -170,7 +170,7 @@ old `"...%s" % var`-notation.
<!-- TODO: This recommendation is an updated remainder of the old style guide.
It seems a bit lost here. -->

- Avoid `if` and `else` keywords be separated by a lot of code.
- Avoid large vertical separation of `if` and `else` keywords.
```python
# NO:
if bizbaz:
Expand Down Expand Up @@ -213,4 +213,3 @@ Write 90% tests. The test should make sure that it will catch 90% of the
potential problems with the function. Avoid writing 50% tests (that only check
a common case or two) and avoid writing 99.9% tests because it will consume too
much of your time.

0 comments on commit 1ed388a

Please sign in to comment.