Skip to content
Myr

Typos.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by florentx · committed by Armin Ronacher · parent 4cd5201 · Browse files · 2 files+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−6 removed

  • other:+6 added−6 removed

2 files+6 added−6 removed

deleted:docs/_themesnot shown

Its text is not shown, deleted.

modified:docs/styleguide.rst+6 added-6 removed
29 unmodified lines
30 MyModel.query.filter(MyModel.scalar > 120) \31 .order_by(MyModel.name.desc()) \32 .limit(10)3334 If you break in a statement with parentheses or brances, align to the34 If you break in a statement with parentheses or braces, align to the35 braces::3637 this_is_a_very_long(function_call, 'with many parameters',38 23, 42, 'and even more')
65 unmodified lines
104 if 'md5' == method:105 pass106107Comparisons:108 - against arbitary types: ``==`` and ``!=``109 - against singletones with ``is`` and ``is not`` (eg: ``foo is not108 - against arbitrary types: ``==`` and ``!=``109 - against singletons with ``is`` and ``is not`` (eg: ``foo is not110 None``)111 - never compare something with `True` or `False` (for example never112 do ``foo == False``, do ``not foo`` instead)113
10 unmodified lines
124125- Class names: ``CamelCase``, with acronyms kept uppercase (``HTTPWriter``126 and not ``HttpWriter``)127- Variable names: ``lowercase_with_underscores``128- Method and functin names: ``lowercase_with_underscores``128- Method and function names: ``lowercase_with_underscores``129- Constants: ``UPPERCASE_WITH_UNDERSCORES``130- precompiled regular expressions: ``name_re``131132Protected members are prefixed with a single underscore. Double
17 unmodified lines
150151Docstring conventions:152 All docstrings are formatted with reStructuredText as understood by153 Sphinx. Depending on the number of lines in the docstring, they are154 layed out differently. If it's just one line, the closing tripple154 layed out differently. If it's just one line, the closing triple155 quote is on the same line as the opening, otherwise the text is on156 the same line as the opening quote and the tripple quote that closes156 the same line as the opening quote and the triple quote that closes157 the string on its own line::158159 def foo():160 """This is a simple docstring"""
40 unmodified lines