summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-15 20:59:55 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-15 20:59:55 (GMT)
commit88a3e1f46b0262d0d03b1e6fb876c2bb9917e157 (patch)
tree95da41e6eb8292c007a8c9b33877e7ca55036422 /Doc/library/os.path.rst
parent3a31ecd8276397fed6703581a07a47ed15b28299 (diff)
parent618c2e13ca410f342bb057e62e24478b585744aa (diff)
downloadcpython-88a3e1f46b0262d0d03b1e6fb876c2bb9917e157.zip
cpython-88a3e1f46b0262d0d03b1e6fb876c2bb9917e157.tar.gz
cpython-88a3e1f46b0262d0d03b1e6fb876c2bb9917e157.tar.bz2
Merge: use OSError instead of os.error in the docs.
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r--Doc/library/os.path.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index debfb10..d9b7138 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -125,7 +125,7 @@ applications should use string objects to access all files.
Return the time of last access of *path*. The return value is a number giving
the number of seconds since the epoch (see the :mod:`time` module). Raise
- :exc:`os.error` if the file does not exist or is inaccessible.
+ :exc:`OSError` if the file does not exist or is inaccessible.
If :func:`os.stat_float_times` returns True, the result is a floating point
number.
@@ -135,7 +135,7 @@ applications should use string objects to access all files.
Return the time of last modification of *path*. The return value is a number
giving the number of seconds since the epoch (see the :mod:`time` module).
- Raise :exc:`os.error` if the file does not exist or is inaccessible.
+ Raise :exc:`OSError` if the file does not exist or is inaccessible.
If :func:`os.stat_float_times` returns True, the result is a floating point
number.
@@ -146,13 +146,13 @@ applications should use string objects to access all files.
Return the system's ctime which, on some systems (like Unix) is the time of the
last change, and, on others (like Windows), is the creation time for *path*.
The return value is a number giving the number of seconds since the epoch (see
- the :mod:`time` module). Raise :exc:`os.error` if the file does not exist or
+ the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or
is inaccessible.
.. function:: getsize(path)
- Return the size, in bytes, of *path*. Raise :exc:`os.error` if the file does
+ Return the size, in bytes, of *path*. Raise :exc:`OSError` if the file does
not exist or is inaccessible.