Index: Lib/trace.py =================================================================== --- Lib/trace.py (revision 60025) +++ Lib/trace.py (working copy) @@ -729,7 +729,8 @@ continue if opt == "--ignore-module": - ignore_modules.append(val) + for mod in val.split(","): + ignore_modules.append(mod.strip()) continue if opt == "--ignore-dir": Index: Doc/library/trace.rst =================================================================== --- Doc/library/trace.rst (revision 60025) +++ Doc/library/trace.rst (working copy) @@ -64,12 +64,14 @@ stdout for each file processed. :option:`--ignore-module` - Ignore the named module and its submodules (if it is a package). May be given + Accepts comma separated list of module names. Ignore each of the named + module and its submodules (if it is a package). May be given multiple times. :option:`--ignore-dir` - Ignore all modules and packages in the named directory and subdirectories. May - be given multiple times. + Ignore all modules and packages in the named directory and subdirectories + (multiple directories can be joined by os.pathsep). May be given multiple + times. .. _trace-api: