Index: Lib/trace.py =================================================================== --- Lib/trace.py (revision 54660) +++ Lib/trace.py (working copy) @@ -100,7 +100,7 @@ (Can only be used with --count or --report.) Filters, may be repeated multiple times: ---ignore-module= Ignore the given module and its submodules +--ignore-module= Ignore the given modules and each module's submodules (if it is a package). --ignore-dir= Ignore files in the given directory (multiple directories can be joined by os.pathsep). @@ -727,7 +727,8 @@ continue if opt == "--ignore-module": - ignore_modules.append(val) + for s in val.split(","): + ignore_modules.append(s.strip()) continue if opt == "--ignore-dir": Index: Doc/lib/libtrace.tex =================================================================== --- Doc/lib/libtrace.tex (revision 54584) +++ Doc/lib/libtrace.tex (working copy) @@ -61,12 +61,14 @@ brief summary to stdout for each file processed. \item[\longprogramopt{ignore-module}] -Ignore the named module and its submodules (if it is +Accepts comma separated list of module names. +Ignore the named modules and each module's submodules (if it is a package). May be given multiple times. \item[\longprogramopt{ignore-dir}] Ignore all modules and packages in the named directory -and subdirectories. May be given multiple times. +and subdirectories (multiple directories can be joined by os.pathsep). +May be given multiple times. \end{description} \subsection{Programming Interface\label{trace-api}}