mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #147 from okin/master
Consistent syntax highlighting.
This commit is contained in:
@@ -260,7 +260,7 @@ or a method. The 'decorated' function or method will replace the original
|
|||||||
in Python it can be done 'manually' but using the @decorator syntax is
|
in Python it can be done 'manually' but using the @decorator syntax is
|
||||||
clearer and thus preferred.
|
clearer and thus preferred.
|
||||||
|
|
||||||
.. code-block:: Python
|
.. code-block:: python
|
||||||
|
|
||||||
def foo():
|
def foo():
|
||||||
# do something
|
# do something
|
||||||
@@ -307,7 +307,7 @@ Some guidelines help to avoid this issue:
|
|||||||
|
|
||||||
**Bad**
|
**Bad**
|
||||||
|
|
||||||
.. code-block:: Python
|
.. code-block:: python
|
||||||
|
|
||||||
a = 1
|
a = 1
|
||||||
a = 'a string'
|
a = 'a string'
|
||||||
|
|||||||
Reference in New Issue
Block a user