From b61989711f80b0dd16d3ee56e061c23a2d759786 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 11 Dec 2000 03:11:42 +0000 Subject: - Added a patch to fix a small bug, as suggested by Martel's author. - Bumped PORTREVISION - Added file: files/patch-Generate.py PR: 23351 Submitted by: maintainer --- textproc/py-martel/files/patch-Generate.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 textproc/py-martel/files/patch-Generate.py (limited to 'textproc/py-martel/files/patch-Generate.py') diff --git a/textproc/py-martel/files/patch-Generate.py b/textproc/py-martel/files/patch-Generate.py new file mode 100644 index 000000000000..caafeaaebc6b --- /dev/null +++ b/textproc/py-martel/files/patch-Generate.py @@ -0,0 +1,16 @@ +--- 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 -- cgit v1.2.3