summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-05 22:03:31 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-05 22:03:31 +0000
commitb2fe18e3cdcc40fbb3e5304b2bc9f9fc3de4c58e (patch)
treed16c2698374bb52e0369a8a8f5350e8852d68992
parentdeee80841177cfb1c965e60ad3ce93a808cbe55a (diff)
downloadportage-b2fe18e3cdcc40fbb3e5304b2bc9f9fc3de4c58e.tar.gz
portage-b2fe18e3cdcc40fbb3e5304b2bc9f9fc3de4c58e.tar.bz2
portage-b2fe18e3cdcc40fbb3e5304b2bc9f9fc3de4c58e.zip
Fix have_end_quote() to compare the quote against the correct group.
svn path=/main/trunk/; revision=9442
-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 0db77ba5f..0a88f710b 100755
--- a/bin/filter-bash-environment.py
+++ b/bin/filter-bash-environment.py
@@ -32,7 +32,7 @@ def have_end_quote(quote, line):
"""
close_quote_match = close_quote_re.search(line)
return close_quote_match is not None and \
- close_quote_match.group(0) == quote
+ close_quote_match.group(1) == quote
def filter_bash_environment(pattern, file_in, file_out):
here_doc_delim = None