mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Oops, debug.reset opens all the fds into the same file!
This commit is contained in:
parent
3ae813674e
commit
a5042e2a3d
@ -115,8 +115,8 @@ def _open():
|
|||||||
"""Implementation details; needed because Windows sucks."""
|
"""Implementation details; needed because Windows sucks."""
|
||||||
global _errorfd, _debugfd, _tracefd
|
global _errorfd, _debugfd, _tracefd
|
||||||
_errorfd = file(_errorfd.name, 'a')
|
_errorfd = file(_errorfd.name, 'a')
|
||||||
_debugfd = file(_errorfd.name, 'a')
|
_debugfd = file(_debugfd.name, 'a')
|
||||||
_tracefd = file(_errorfd.name, 'w')
|
_tracefd = file(_tracefd.name, 'w')
|
||||||
|
|
||||||
def reset():
|
def reset():
|
||||||
"""Resets the various file descriptors kept open by this module."""
|
"""Resets the various file descriptors kept open by this module."""
|
||||||
|
Loading…
Reference in New Issue
Block a user