summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-04 18:42:39 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-04 18:42:39 +0000
commit500345465e9d78cc9c782febfcbede4145525876 (patch)
tree1f5d95b8947ff8aa8e7f5d87792531c7cd7a03b0
parentc52e0ff64481a3da2c064453742620c381169b80 (diff)
downloadportage-500345465e9d78cc9c782febfcbede4145525876.tar.gz
portage-500345465e9d78cc9c782febfcbede4145525876.tar.bz2
portage-500345465e9d78cc9c782febfcbede4145525876.zip
Tighten the funct_start_re so that it doesn't match leading whitespace
since that's not needed. svn path=/main/trunk/; revision=9433
-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 0c1e67911..861f0a693 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'^\s*[-\w]*\s*\(\)\s*$')
+func_start_re = re.compile(r'^[-\w]*\s*\(\)\s*$')
func_end_re = re.compile(r'^\}$')
def compile_egrep_pattern(s):