mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Re-enabled the old reloading method, we'll see if it comes in useful.
This commit is contained in:
parent
20c37dd96f
commit
979ed770d8
@ -89,6 +89,7 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
|
|||||||
msg = '%s upkeep ran.' % time.strftime(conf.timestampFormat)
|
msg = '%s upkeep ran.' % time.strftime(conf.timestampFormat)
|
||||||
debug.debugMsg(msg, 'verbose')
|
debug.debugMsg(msg, 'verbose')
|
||||||
|
|
||||||
|
'''
|
||||||
def superReload(oldmodule):
|
def superReload(oldmodule):
|
||||||
###
|
###
|
||||||
# So here's how this baby works:
|
# So here's how this baby works:
|
||||||
@ -154,10 +155,8 @@ def superReload(oldmodule):
|
|||||||
# Update the linecache, so tracebacks show the proper lines.
|
# Update the linecache, so tracebacks show the proper lines.
|
||||||
linecache.checkcache()
|
linecache.checkcache()
|
||||||
return newmodule
|
return newmodule
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# This makes the module reload properly; we don't want to lose oldobjects
|
# This makes the module reload properly; we don't want to lose oldobjects
|
||||||
# on reload.
|
# on reload.
|
||||||
@ -200,7 +199,6 @@ def superReload(module):
|
|||||||
updateFunction(oldobj.im_func, newobj.im_func,
|
updateFunction(oldobj.im_func, newobj.im_func,
|
||||||
('func_code', 'func_defaults', 'func_doc'))
|
('func_code', 'func_defaults', 'func_doc'))
|
||||||
return module
|
return module
|
||||||
'''
|
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
#################################################
|
#################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user