mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
add funcs name/attribut to __dir__
This commit is contained in:
parent
635acc9312
commit
3272643eca
@ -894,6 +894,9 @@ class FormatterFuncsCaller():
|
|||||||
e.is_internal = True
|
e.is_internal = True
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
|
def __dir__(self):
|
||||||
|
return list(set(object.__dir__(self) + [f+'_' for f in self.formatter.funcs.keys()]))
|
||||||
|
|
||||||
def call(self, name, *args):
|
def call(self, name, *args):
|
||||||
formatter = self.formatter
|
formatter = self.formatter
|
||||||
args = [str(a) for a in args]
|
args = [str(a) for a in args]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user