From: Zac Medico Date: Tue, 4 Mar 2008 18:42:39 +0000 (-0000) Subject: Tighten the funct_start_re so that it doesn't match leading whitespace X-Git-Tag: v2.2_pre4~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=500345465e9d78cc9c782febfcbede4145525876;p=portage.git Tighten the funct_start_re so that it doesn't match leading whitespace since that's not needed. svn path=/main/trunk/; revision=9433 --- 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):