From 5d3f1cf3aa420895a7d8f6c0f5653dc5b882050f Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 6 Dec 2012 00:51:41 +0000 Subject: Fix comment and remove dead code in doExtOutputSub --- sos/plugins/__init__.py | 5 ++--- 1 file 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): -- cgit