Updated Caper to version 0.2.2

This commit is contained in:
Dean Gardiner
2013-10-16 14:58:47 +13:00
parent 6259684487
commit 07abf7c83d
4 changed files with 2 additions and 130 deletions
-12
View File
@@ -33,18 +33,6 @@ class CaptureStep(object):
#: @type: bool
self.single = single
def _get_next_subject(self, parser):
if self.source == 'fragment':
if not parser.fragment_available():
return None
return parser.next_fragment()
elif self.source == 'closure':
if not parser.closure_available():
return None
return parser.next_closure()
raise NotImplementedError()
def execute(self, fragment):
if self.regex:
weight, match, num_fragments = self.capture_group.parser.matcher.fragment_match(fragment, self.regex)