projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c52e0ff
)
Tighten the funct_start_re so that it doesn't match leading whitespace
author
Zac Medico
<zmedico@gentoo.org>
Tue, 4 Mar 2008 18:42:39 +0000
(18:42 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 4 Mar 2008 18:42:39 +0000
(18:42 -0000)
since that's not needed.
svn path=/main/trunk/; revision=9433
bin/filter-bash-environment.py
patch
|
blob
|
history
diff --git
a/bin/filter-bash-environment.py
b/bin/filter-bash-environment.py
index 0c1e67911ea0e10cdb3eb0f2bc37c5aad03ab8c7..861f0a6939f5cc023e78e3b9cc27075308db7b11 100755
(executable)
--- 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):