Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
618c2e13
Commit
618c2e13
authored
Dec 15, 2012
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use OSError instead of os.error in the docs.
parent
18d105b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Doc/library/os.path.rst
Doc/library/os.path.rst
+4
-4
Doc/library/shutil.rst
Doc/library/shutil.rst
+1
-1
No files found.
Doc/library/os.path.rst
View file @
618c2e13
...
...
@@ -126,7 +126,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.e
rror` if the file does not exist or is inaccessible.
:exc:`
OSE
rror` if the file does not exist or is inaccessible.
If :func:`os.stat_float_times` returns True, the result is a floating point
number.
...
...
@@ -136,7 +136,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.e
rror` if the file does not exist or is inaccessible.
Raise :exc:`
OSE
rror` if the file does not exist or is inaccessible.
If :func:`os.stat_float_times` returns True, the result is a floating point
number.
...
...
@@ -147,13 +147,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.e
rror` if the file does not exist or
the :mod:`time` module). Raise :exc:`
OSE
rror` if the file does not exist or
is inaccessible.
.. function:: getsize(path)
Return the size, in bytes, of *path*. Raise :exc:`
os.e
rror` if the file does
Return the size, in bytes, of *path*. Raise :exc:`
OSE
rror` if the file does
not exist or is inaccessible.
...
...
Doc/library/shutil.rst
View file @
618c2e13
...
...
@@ -372,7 +372,7 @@ provided by this module. ::
else:
copy2(srcname, dstname)
# XXX What about devices, sockets etc.?
except
(IOError, os.error)
as why:
except
OSError
as why:
errors.append((srcname, dstname, str(why)))
# catch the Error from the recursive copytree so that we can
# continue with other files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment