Issue 1693149: patch to make 'trace.py --ignore-module' accept module name list. (original) (raw)

Currently, trace.py's command line option "--ignore-module" only accepts one module name. If multiple module names need to be passed, this option can be used multiple times. However, this patch makes this process simple by causing trace.py to accept comma separated module names. Please note that it is still possible to use this option multiple times but each time, a comma separated list can be passed.

Usage example:

$ python -m trace -t --ignore-module tempfile,posixpath --ignore-module random tfile.py

On a separate note, the patch also has slight change to "--ignore-dir"'s description to bring it up to date with what "--help" shows.