# HG changeset patch # User Paul Boddie # Date 1571935853 -7200 # Node ID 5356499387d3ca868359a4f844757c4be32dc1d0 # Parent 90003650d826a4ea57f0ea9a42ba8b52ef7bdc5b Fixed a missing parameter when propagating read_until to the token stream. Removed a superfluous import. diff -r 90003650d826 -r 5356499387d3 moinformat/parsers/common.py --- a/moinformat/parsers/common.py Fri Jul 12 22:07:17 2019 +0200 +++ b/moinformat/parsers/common.py Thu Oct 24 18:50:53 2019 +0200 @@ -19,7 +19,6 @@ this program. If not, see . """ -from collections import defaultdict from moinformat.tree.moin import Block, Region, Text import re @@ -315,7 +314,8 @@ or None if no match was found and 'remaining' is given as a false value. """ - return self.items.read_until(self.get_expression(pattern_names)) + return self.items.read_until(self.get_expression(pattern_names), + remaining) def match_group(self, group=None):