MNT Update liac-arff to 2.3.1
@@ -146,7 +146,7 @@ __author__ = 'Renato de Pontes Pereira, Matthias Feurer, Joel Nothman'
__author_email__ = ('renato.ppontes@gmail.com, '
'feurerm@informatik.uni-freiburg.de, '
'joel.nothman@gmail.com')
-__version__ = '2.3'
+__version__ = '2.3.1'
import re
import sys
@@ -171,7 +171,7 @@ _RE_NONTRIVIAL_DATA = re.compile('["\'{}\\s]')
def _build_re_values():
- quoted_re = r'''(?x)
+ quoted_re = r'''
" # open quote followed by zero or more of:
(?:
(?<!\\) # no additional backslash
@@ -185,7 +185,7 @@ def _build_re_values():
" # close quote
'''
# a value is surrounded by " or by ' or contains no quotables
- value_re = r'''(?x)(?:
+ value_re = r'''(?:
%s| # a value may be surrounded by "
%s| # or by '
[^,\s"'{}]+ # or may contain no characters requiring quoting
@@ -253,7 +253,7 @@ def _parse_values(s):
for match in _RE_SPARSE_KEY_VALUES.finditer(s):
if not match.group(1):
raise BadLayout('Error parsing %r' % match.group())
- raise
+ raise BadLayout('Unknown parsing error')
else:
# an ARFF syntax error
for match in _RE_DENSE_VALUES.finditer(s):
