mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix #1693149. Now you can pass several modules separated by
coma to trace.py in the same --ignore-module option. Thanks Raghuram Devarakonda.
This commit is contained in:
parent
5c60bfcfbf
commit
873c9857b7
2 changed files with 10 additions and 6 deletions
|
@ -100,8 +100,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])
|
||||
|
@ -729,7 +730,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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue