summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-04 18:43:58 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-04 18:43:58 +0000
commitc51ce698b7629cb133550777a8e177d582c4acdc (patch)
tree811114e354a9b51214c80c4e1f3f30a475c496a8 /bin/filter-bash-environment.py
parentTighten the funct_start_re so that it doesn't match leading whitespace (diff)
downloadportage-multirepo-c51ce698b7629cb133550777a8e177d582c4acdc.tar.gz
portage-multirepo-c51ce698b7629cb133550777a8e177d582c4acdc.tar.bz2
portage-multirepo-c51ce698b7629cb133550777a8e177d582c4acdc.zip
Fix func_start_re so that it requires at least one alphanumeric character.
svn path=/main/trunk/; revision=9434
Diffstat (limited to 'bin/filter-bash-environment.py')
-rwxr-xr-xbin/filter-bash-environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/filter-bash-environment.py b/bin/filter-bash-environment.py
index 861f0a69..93b04976 100755
--- a/bin/filter-bash-environment.py
+++ b/bin/filter-bash-environment.py
@@ -12,7 +12,7 @@ egrep_compat_map = {
}
here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$')
-func_start_re = re.compile(r'^[-\w]*\s*\(\)\s*$')
+func_start_re = re.compile(r'^[-\w]+\s*\(\)\s*$')
func_end_re = re.compile(r'^\}$')
def compile_egrep_pattern(s):