diff options
author | kevlo <kevlo@FreeBSD.org> | 2001-01-12 15:40:20 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2001-01-12 15:40:20 +0000 |
commit | d9dcc9ef4f796f67fcb4507e4b795d6e8d4ee767 (patch) | |
tree | a3746b1c76e78fddfc1b68a25bee4b9401d551a8 /textproc/py-martel | |
parent | e86ea800eb66c71b898c5f1a8eb7c819540dc660 (diff) | |
download | FreeBSD-ports-d9dcc9ef4f796f67fcb4507e4b795d6e8d4ee767.zip FreeBSD-ports-d9dcc9ef4f796f67fcb4507e4b795d6e8d4ee767.tar.gz |
files/patch-Generate is no longer needed
PR: 24274
Submitted by: MAINTAINER
Diffstat (limited to 'textproc/py-martel')
-rw-r--r-- | textproc/py-martel/Makefile | 1 | ||||
-rw-r--r-- | textproc/py-martel/files/patch-Generate.py | 45 |
2 files changed, 1 insertions, 45 deletions
diff --git a/textproc/py-martel/Makefile b/textproc/py-martel/Makefile index 496998d..442a9ad 100644 --- a/textproc/py-martel/Makefile +++ b/textproc/py-martel/Makefile @@ -7,6 +7,7 @@ PORTNAME= martel PORTVERSION= 0.5 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= textproc biology python MASTER_SITES= http://www.biopython.org/~dalke/Martel/ diff --git a/textproc/py-martel/files/patch-Generate.py b/textproc/py-martel/files/patch-Generate.py deleted file mode 100644 index 045356c..0000000 --- a/textproc/py-martel/files/patch-Generate.py +++ /dev/null @@ -1,45 +0,0 @@ -From: "Andrew Dalke" <dalke@acm.org> -To: <biopython-dev@biopython.org> -Date: Wed, 6 Dec 2000 01:12:29 -0700 - -There's a bug in Martel-0.4 and earlier versions. - -Suppose you have ([<>][ABC])+[<>]? -and want to match it against - - <A<B< - -The "<A" matches the first [<>][ABC]. The "<B" matches -the second [<>][ABC]. The parser tries to match the final -"<" against [<>][ABC] and should fail then try to match -the "<" against [<>]? . - -The bug was that it would match the "<" against the [<>] in -[<>][ABC] and fail at that point. It gives an assertion error -about "l" being greater than "r". - -Here's the patch. The only consequence should be a small hit -in performance. - - Andrew - -[ Note from port maintainer: - This patch was somehow not incorporated into Martel 0.5 ] - - ---- Generate.py.orig Wed Nov 22 09:26:48 2000 -+++ Generate.py Thu Dec 7 12:27:09 2000 -@@ -268,11 +268,11 @@ - - # Must repeat at least "i" times. - for i in range(min_count): -- result.append( (None, TT.SubTable, tuple(tagtable)) ) -+ result.append( (">ignore", TT.Table, tuple(tagtable)) ) - - # Special case for when the max count means "unbounded" - if max_count == sre_parse.MAXREPEAT: -- result.append( (None, TT.SubTable, tuple(tagtable), -+ result.append( (">ignore", TT.Table, tuple(tagtable), - +1, 0)) - elif min_count == max_count: - # Special case when i == j |