mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
47b0baae85
commit
3074d11ce5
@ -96,6 +96,7 @@ class Function(object):
|
|||||||
return self.func(None, self.match_index, self.context_name, self.boss.current_metadata, dictionaries, self.data, functions())
|
return self.func(None, self.match_index, self.context_name, self.boss.current_metadata, dictionaries, self.data, functions())
|
||||||
finally:
|
finally:
|
||||||
sys.stdout, sys.stderr = oo, oe
|
sys.stdout, sys.stderr = oo, oe
|
||||||
|
self.data, self.debug_buf, self.boss = {}, None, None
|
||||||
|
|
||||||
class DebugOutput(Dialog):
|
class DebugOutput(Dialog):
|
||||||
|
|
||||||
@ -130,7 +131,7 @@ class DebugOutput(Dialog):
|
|||||||
|
|
||||||
def builtin_functions():
|
def builtin_functions():
|
||||||
for name, obj in globals().iteritems():
|
for name, obj in globals().iteritems():
|
||||||
if name.startswith('replace_') and callable(obj):
|
if name.startswith('replace_') and callable(obj) and hasattr(obj, 'imports'):
|
||||||
yield obj
|
yield obj
|
||||||
|
|
||||||
_functions = None
|
_functions = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user