Kaydet (Commit) 873c9857 authored tarafından Facundo Batista's avatar Facundo Batista

Fix #1693149. Now you can pass several modules separated by

coma to trace.py in the same --ignore-module option.
Thanks Raghuram Devarakonda.
üst 5c60bfcf
...@@ -64,12 +64,14 @@ The following command-line arguments are supported: ...@@ -64,12 +64,14 @@ The following command-line arguments are supported:
stdout for each file processed. stdout for each file processed.
:option:`--ignore-module` :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. multiple times.
:option:`--ignore-dir` :option:`--ignore-dir`
Ignore all modules and packages in the named directory and subdirectories. May Ignore all modules and packages in the named directory and subdirectories
be given multiple times. (multiple directories can be joined by os.pathsep). May be given multiple
times.
.. _trace-api: .. _trace-api:
......
...@@ -100,8 +100,9 @@ Modifiers: ...@@ -100,8 +100,9 @@ Modifiers:
(Can only be used with --count or --report.) (Can only be used with --count or --report.)
Filters, may be repeated multiple times: Filters, may be repeated multiple times:
--ignore-module=<mod> Ignore the given module and its submodules --ignore-module=<mod> Ignore the given module(s) and its submodules
(if it is a package). (if it is a package). Accepts comma separated
list of module names
--ignore-dir=<dir> Ignore files in the given directory (multiple --ignore-dir=<dir> Ignore files in the given directory (multiple
directories can be joined by os.pathsep). directories can be joined by os.pathsep).
""" % sys.argv[0]) """ % sys.argv[0])
...@@ -729,7 +730,8 @@ def main(argv=None): ...@@ -729,7 +730,8 @@ def main(argv=None):
continue continue
if opt == "--ignore-module": if opt == "--ignore-module":
ignore_modules.append(val) for mod in val.split(","):
ignore_modules.append(mod.strip())
continue continue
if opt == "--ignore-dir": if opt == "--ignore-dir":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment