diff options
author | kevlo <kevlo@FreeBSD.org> | 2001-01-19 16:47:28 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2001-01-19 16:47:28 +0000 |
commit | e896ecf0647e2f5da7a5745f68946d2f2d7ab464 (patch) | |
tree | d700f79c76120e7a247aac3def4d9a6aca286e87 /textproc/py-martel/files | |
parent | 80cefc4f762da32e8cb65843d22206ec42b39678 (diff) | |
download | FreeBSD-ports-e896ecf0647e2f5da7a5745f68946d2f2d7ab464.zip FreeBSD-ports-e896ecf0647e2f5da7a5745f68946d2f2d7ab464.tar.gz |
Fix formatting problem
PR: 24457
Submitted by: MAINTAINER
Diffstat (limited to 'textproc/py-martel/files')
-rw-r--r-- | textproc/py-martel/files/patch-Generate.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/textproc/py-martel/files/patch-Generate.py b/textproc/py-martel/files/patch-Generate.py new file mode 100644 index 0000000..036c750 --- /dev/null +++ b/textproc/py-martel/files/patch-Generate.py @@ -0,0 +1,18 @@ +From: "Andrew Dalke" <dalke@acm.org> +To: <biopython-dev@biopython.org> +Date: Tue, 16 Jan 2001 18:57:23 -0700 + +There's a small bug with the debug_level = 2 option +in Martel. When the debug position is within the +first 8 characters it does not show the match text. + +--- Generate.py.orig Fri Jan 19 14:50:01 2001 ++++ Generate.py Fri Jan 19 14:50:06 2001 +@@ -460,7 +460,7 @@ + s = s[:17] + " ... " + s[-17:] + self.msg = s + def __call__(self, text, x, end): +- print "Match %s (x=%d): %s" % (repr(text[x-8:x+8]), x, ++ print "Match %s (x=%d): %s" % (repr(text[max(0, x-8):x+8]), x, + repr(self.msg)) + return x |