|
@@ -115,10 +115,11 @@ class Sum(ioex.calcex.Figure):
|
|
|
@staticmethod
|
|
|
def parse_text(text):
|
|
|
match = re.search('^{}$'.format(Sum.sum_regex), text, re.UNICODE)
|
|
|
- assert not match is None, '\nregex: {}\ntext: {!r}'.format(
|
|
|
- Sum.sum_regex,
|
|
|
- text,
|
|
|
- )
|
|
|
+ assert not match is None, '\n' + '\n'.join([
|
|
|
+ 'regex: {}'.format(Sum.sum_regex),
|
|
|
+ 'text: {}'.format(text),
|
|
|
+ 'text repr: {!r}'.format(text),
|
|
|
+ ])
|
|
|
attr = ioex.dict_collapse(
|
|
|
match.groupdict(),
|
|
|
lambda k: k.split('_')[-1],
|