[Reproducible-commits] [debbindiff] 01/01: Escape path for regular expression (thanks Lunar)
Reiner Herrmann
deki-guest at moszumanska.debian.org
Thu May 21 21:50:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository debbindiff.
commit d471b25118d532343714fe5ab43bbc90b0f15d09
Author: Reiner Herrmann <reiner at reiner-h.de>
Date: Thu May 21 23:48:48 2015 +0200
Escape path for regular expression (thanks Lunar)
---
debbindiff/comparators/java.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debbindiff/comparators/java.py b/debbindiff/comparators/java.py
index 42cfa7a..394642c 100644
--- a/debbindiff/comparators/java.py
+++ b/debbindiff/comparators/java.py
@@ -29,7 +29,7 @@ class Javap(Command):
return ['javap', '-verbose', '-constants', '-s', '-l', '-private', self.path]
def filter(self, line):
- if re.match(r'^Classfile %s$' % self.path, line):
+ if re.match(r'^Classfile %s$' % re.escape(self.path), line):
return ''
return line
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git
More information about the Reproducible-commits
mailing list