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
45668386
Commit
45668386
authored
Oct 16, 2012
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Issue #16244: Merged change from 3.2.
parents
e15cbaa7
796ac93f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
Lib/logging/handlers.py
Lib/logging/handlers.py
+0
-2
No files found.
Lib/logging/handlers.py
View file @
45668386
...
@@ -172,7 +172,6 @@ class RotatingFileHandler(BaseRotatingHandler):
...
@@ -172,7 +172,6 @@ class RotatingFileHandler(BaseRotatingHandler):
if
os
.
path
.
exists
(
dfn
):
if
os
.
path
.
exists
(
dfn
):
os
.
remove
(
dfn
)
os
.
remove
(
dfn
)
self
.
rotate
(
self
.
baseFilename
,
dfn
)
self
.
rotate
(
self
.
baseFilename
,
dfn
)
self
.
mode
=
'w'
self
.
stream
=
self
.
_open
()
self
.
stream
=
self
.
_open
()
def
shouldRollover
(
self
,
record
):
def
shouldRollover
(
self
,
record
):
...
@@ -381,7 +380,6 @@ class TimedRotatingFileHandler(BaseRotatingHandler):
...
@@ -381,7 +380,6 @@ class TimedRotatingFileHandler(BaseRotatingHandler):
if
self
.
backupCount
>
0
:
if
self
.
backupCount
>
0
:
for
s
in
self
.
getFilesToDelete
():
for
s
in
self
.
getFilesToDelete
():
os
.
remove
(
s
)
os
.
remove
(
s
)
self
.
mode
=
'w'
self
.
stream
=
self
.
_open
()
self
.
stream
=
self
.
_open
()
newRolloverAt
=
self
.
computeRollover
(
currentTime
)
newRolloverAt
=
self
.
computeRollover
(
currentTime
)
while
newRolloverAt
<=
currentTime
:
while
newRolloverAt
<=
currentTime
:
...
...
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