Browse Source

Sum.parse_text: adapt assertion text

Fabian Peter Hammerle 7 years ago
parent
commit
7347784f01
2 changed files with 6 additions and 5 deletions
  1. 5 4
      finoex/__init__.py
  2. 1 1
      setup.py

+ 5 - 4
finoex/__init__.py

@@ -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],

+ 1 - 1
setup.py

@@ -4,7 +4,7 @@ import glob
 
 setup(
     name = 'finoex',
-    version = '0.11.0',
+    version = '0.11.1',
     # description = '',
     author = 'Fabian Peter Hammerle',
     author_email = 'fabian.hammerle@gmail.com',