mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #985 from XVilka/patch-1
Before, links went to the 2.7 documentation. Now, links go to the 3.x documentation.
This commit is contained in:
@@ -675,7 +675,7 @@ by the ``with`` statement. CustomOpen is first instantiated and then its
|
||||
is finished executing, the ``__exit__`` method is then called.
|
||||
|
||||
And now the generator approach using Python's own
|
||||
`contextlib <https://docs.python.org/2/library/contextlib.html>`_:
|
||||
`contextlib <https://docs.python.org/3/library/contextlib.html>`_:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -890,5 +890,5 @@ Runners
|
||||
Further Reading
|
||||
***************
|
||||
|
||||
- http://docs.python.org/2/library/
|
||||
- http://docs.python.org/3/library/
|
||||
- http://www.diveintopython.net/toc/index.html
|
||||
|
||||
Reference in New Issue
Block a user