[issue24884] Add method reopenFile() in WatchedFileHandler class

2015-10-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6d61b057c375 by Vinay Sajip in branch 'default':
Closes #24884: refactored WatchedFileHandler file reopening into a separate 
method, based on a suggestion and patch by Marian Horban.
https://hg.python.org/cpython/rev/6d61b057c375

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24884] Add method reopenFile() in WatchedFileHandler class

2015-08-18 Thread Marian Horban

New submission from Marian Horban:

Method WatchedFileHandler::emit() makes 2 things:
1. reopens log file,
2. emits record.
Sometimes user wants to reopen file immediately after some action without 
emitting.
Code that reopens file must be moved to separate method to avoid copy-pasting 
code in programs that use this functionality.
Patch is provided.

--
files: add_reopen_file.patch
keywords: patch
messages: 248765
nosy: Marian Horban
priority: normal
severity: normal
status: open
title: Add method reopenFile() in WatchedFileHandler class
type: enhancement
Added file: http://bugs.python.org/file40201/add_reopen_file.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24884
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com