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
4c02491f
Commit
4c02491f
authored
Sep 06, 2013
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closes #18940: Merged fix from 3.3.
parents
facab9b4
117cf1c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Lib/logging/handlers.py
Lib/logging/handlers.py
+3
-1
No files found.
Lib/logging/handlers.py
View file @
4c02491f
...
...
@@ -109,6 +109,8 @@ class BaseRotatingHandler(logging.FileHandler):
what the source is rotated to, e.g. 'test.log.1'.
"""
if
not
callable
(
self
.
rotator
):
# Issue 18940: A file may not have been created if delay is True.
if
os
.
path
.
exists
(
source
):
os
.
rename
(
source
,
dest
)
else
:
self
.
rotator
(
source
,
dest
)
...
...
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