diff options
Diffstat (limited to 'Lib/trace.py')
-rw-r--r-- | Lib/trace.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/trace.py b/Lib/trace.py index f6da026..c52c8a8 100644 --- a/Lib/trace.py +++ b/Lib/trace.py @@ -96,8 +96,9 @@ Modifiers: (Can only be used with --count or --report.) Filters, may be repeated multiple times: ---ignore-module=<mod> Ignore the given module and its submodules - (if it is a package). +--ignore-module=<mod> Ignore the given module(s) and its submodules + (if it is a package). Accepts comma separated + list of module names --ignore-dir=<dir> Ignore files in the given directory (multiple directories can be joined by os.pathsep). """ % sys.argv[0]) @@ -725,7 +726,8 @@ def main(argv=None): continue if opt == "--ignore-module": - ignore_modules.append(val) + for mod in val.split(","): + ignore_modules.append(mod.strip()) continue if opt == "--ignore-dir": |