Skip to content

Commit 7954a08

Browse files
committed
Updated links
1 parent 7230e80 commit 7954a08

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

open_function.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ read was successful. If there is any error just after ``f = open(...)``,
2828
``f.close()`` will not be called (depending on the Python interpreter,
2929
the file handle may still be returned, but that's another story). To
3030
make sure that the file gets closed whether an exception occurs or not,
31-
pack it into a
32-
```with`` <http://freepythontips.wordpress.com/2013/07/28/the-with-statement/>`__
33-
statement:
31+
pack it into a ```with`` statement:
3432

3533
.. code:: python
3634
@@ -64,7 +62,7 @@ computer, all files are just bytes, not characters.
6462

6563
Unfortunately, ``open`` does not allow explicit encoding specification
6664
in Python 2.x. However, the function
67-
```io.open`` <http://docs.python.org/2/library/io.html#io.open>`__ is
65+
`io.open <http://docs.python.org/2/library/io.html#io.open>`__ is
6866
available in both Python 2.x and 3.x (where it is an alias of ``open``),
6967
and does the right thing. You can pass in the encoding with the
7068
``encoding`` keyword. If you don't pass in any encoding, a system- (and

0 commit comments

Comments
 (0)