summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-01-19 18:38:19 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2008-01-19 18:38:19 (GMT)
commit873c9857b70027dcde79d003d0ed4cd47a94af3f (patch)
tree5981024eb68f13aa2610b2a7da6aed81f138e54a /Lib
parent5c60bfcfbf2dd50cc40210771fdc8d2cfc20cdad (diff)
downloadcpython-873c9857b70027dcde79d003d0ed4cd47a94af3f.zip
cpython-873c9857b70027dcde79d003d0ed4cd47a94af3f.tar.gz
cpython-873c9857b70027dcde79d003d0ed4cd47a94af3f.tar.bz2
Fix #1693149. Now you can pass several modules separated by
coma to trace.py in the same --ignore-module option. Thanks Raghuram Devarakonda.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/trace.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index 3f00605..2e403c8 100644
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -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":