aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-06 00:51:41 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-06 00:51:41 +0000
commit5d3f1cf3aa420895a7d8f6c0f5653dc5b882050f (patch)
treeead32712c39a939eb2788143f75ed2c77b932c7e
parent04cc8afc0d4947d3647ae2bb92908d5e797a707a (diff)
downloadsos-5d3f1cf3aa420895a7d8f6c0f5653dc5b882050f.tar.gz
Fix comment and remove dead code in doExtOutputSub
-rw-r--r--sos/plugins/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 44ab04cf..823b5aca 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -171,13 +171,12 @@ class Plugin(object):
parameters). The regexp can be a string or a compiled re object. The
substitution string, subst, is a string that replaces each occurrence
of regexp in each file collected from cmd. Internally 'cmd' is treated
- as a glob with a trailing '*' and each matching file from the current
- module's command list is subjected to the replacement.
+ as a glob with a leading and trailing '*' and each matching file from
+ the current module's command list is subjected to the replacement.
This function returns the number of replacements made.
'''
globstr = '*' + cmd + '*'
- cmdpath = os.path.join(self.cInfo['cmddir'], "foo")
try:
for called in self.executedCommands:
if fnmatch.fnmatch(called['exe'], globstr):