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
0cf7e25c
Commit
0cf7e25c
authored
Jul 27, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
parent
d8e39014
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Lib/pydoc.py
Lib/pydoc.py
+2
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/pydoc.py
View file @
0cf7e25c
...
...
@@ -212,8 +212,8 @@ def source_synopsis(file):
def
synopsis
(
filename
,
cache
=
{}):
"""Get the one-line summary out of a module file."""
mtime
=
os
.
stat
(
filename
).
st_mtime
lastupdate
,
result
=
cache
.
get
(
filename
,
(
0
,
None
))
if
lastupdate
<
mtime
:
lastupdate
,
result
=
cache
.
get
(
filename
,
(
None
,
None
))
if
lastupdate
is
None
or
lastupdate
<
mtime
:
info
=
inspect
.
getmoduleinfo
(
filename
)
try
:
file
=
open
(
filename
)
...
...
Misc/NEWS
View file @
0cf7e25c
...
...
@@ -37,6 +37,8 @@ Core and Builtins
Library
-------
- Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
- Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
given as a low fd, it gets overwritten.
...
...
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