diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2023-03-26 18:47:01 -0700 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2023-03-26 18:47:01 -0700 |
| commit | 5b0b095c53cec1d773992676980b6ba037ca6736 (patch) | |
| tree | 692a7a653302a4ddce1950422c92a562bf47968d /api-docs/source/conf.py | |
| parent | 3813004537f05133fc4bff09eefdf11723848ddf (diff) | |
switch blacklist mechanism to be less tedious
Diffstat (limited to 'api-docs/source/conf.py')
| -rw-r--r-- | api-docs/source/conf.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/api-docs/source/conf.py b/api-docs/source/conf.py index d511b85e..758738c5 100644 --- a/api-docs/source/conf.py +++ b/api-docs/source/conf.py @@ -54,14 +54,9 @@ import binaryninja.debugger def modulelist(modulename): modules = inspect.getmembers(modulename, inspect.ismodule) # We block the module named "debugger", because it is the folder that contains all debugger Python files - moduleblacklist = ["abc", "atexit", "binaryninja", "builtins", "ctypes", - "core", "struct", "sys", "_binaryninjacore", "traceback", "code", "enum", - "json", "numbers", "threading", "re", "requests", "os", "startup", - "associateddatastore", "range", "pyNativeStr", "cstr", "fnsignature", - "get_class_members", "datetime", "inspect", "subprocess", "site", - "string", "random", "uuid", "queue", "collections", "dbgcore", "debugger", "webbrowser", - "dataclasses", "_debuggercore"] - return sorted(set(x for x in modules if x[0] not in moduleblacklist)) + moduleblacklist = ["binaryninja", "core", "_binaryninjacore", "associateddatastore", + "dbgcore", "debugger", "_debuggercore"] + return sorted(set(x for x in modules if "binaryninja" in x[1].__name__ and x[0] not in moduleblacklist)) def classlist(module): members = inspect.getmembers(module, inspect.isclass) |
