mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added debug.reset, necessary for helping out testing.
This commit is contained in:
parent
0843710626
commit
f6ccc126a3
12
src/debug.py
12
src/debug.py
@ -105,6 +105,18 @@ priorityColors.setdefault('')
|
|||||||
# If the most recent time is
|
# If the most recent time is
|
||||||
lastTimes = [time.time()-1] * 10
|
lastTimes = [time.time()-1] * 10
|
||||||
|
|
||||||
|
def reset():
|
||||||
|
global _errorfd, _debugfd, _tracefd
|
||||||
|
_errorfd.flush()
|
||||||
|
_errorfd.close()
|
||||||
|
_errorfd = file(_errorfd.name, 'a')
|
||||||
|
_debugfd.flush()
|
||||||
|
_debugfd.close()
|
||||||
|
_debugfd = file(_errorfd.name, 'a')
|
||||||
|
_tracefd.flush()
|
||||||
|
_tracefd.close()
|
||||||
|
_tracefd = file(_errorfd.name, 'w')
|
||||||
|
|
||||||
def exit(i=-1):
|
def exit(i=-1):
|
||||||
class E(Exception):
|
class E(Exception):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user