File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Let's see how we can implement our own Context Manager. This should allow
3636us to understand exactly what's going on behind the scenes.
3737
3838Implementing a Context Manager as a Class:
39- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4040
4141At the very least a context manager has an ``__enter__ `` and
4242``__exit__ `` method defined. Let's make our own file-opening Context
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ Now let's take a look at the areas where decorators really shine and
273273their usage makes something really easy to manage.
274274
275275Authorization
276- ~~~~~~~~~~~~
276+ ~~~~~~~~~~~~~
277277
278278Decorators can help to check whether someone is authorized to use an
279279endpoint in a web application. They are extensively used in Flask web
@@ -296,7 +296,7 @@ authentication:
296296 return decorated
297297
298298 Logging
299- ~~~~~~~~~~~~
299+ ~~~~~~~
300300
301301Logging is another area where the decorators shine. Here is an example:
302302
Original file line number Diff line number Diff line change 11``for/else ``
2- ----------
2+ ------------
33
44Loops are an integral part of any language. Likewise ``for `` loops are
55an important part of Python. However there are a few things which most
@@ -22,7 +22,7 @@ That is the very basic structure of a ``for`` loop. Now let's move on to
2222some of the lesser known features of ``for `` loops in Python.
2323
2424``else `` Clause
25- ^^^^^^^^^^^^^^^^^^^^
25+ ^^^^^^^^^^^^^^^
2626
2727``for `` loops also have an ``else `` clause which most of us are unfamiliar
2828with. The ``else `` clause executes after the loop completes normally.
You can’t perform that action at this time.
0 commit comments