From 768ff8b19398da18eff167d42d10bd282820c3f2 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 11 May 2016 08:15:12 +0200 Subject: [PATCH] tox: update pyparsing to 2.1.3 - _trim_arity fix in 2.1.2 was very version-dependent on Py 3.5.0. Now works for Python 2.x, 3.3, 3.4, 3.5.0, and 3.5.1 (and hopefully beyond). This fixes pyparsing/flake8-putyt/flake8 being broken with python 3.4: >>> import pyparsing Traceback (most recent call last): File "", line 1, in File ".../pyparsing.py", line 3478, in _escapedPunc = Word( _bslash, r"\[]-*.$+^?()~ ", exact=2 ).setParseAction(lambda s,l,t:t[0][1]) File ".../pyparsing.py", line 948, in setParseAction self.parseAction = list(map(_trim_arity, list(fns))) File ".../pyparsing.py", line 808, in _trim_arity this_line = extract_stack()[-1] File ".../pyparsing.py", line 793, in extract_stack return [(frame_summary.filename, frame_summary.lineno)] AttributeError: 'tuple' object has no attribute 'filename' See https://sourceforge.net/p/pyparsing/bugs/95/ --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 3b10e905e..7a3689139 100644 --- a/tox.ini +++ b/tox.ini @@ -168,7 +168,7 @@ deps = pep8-naming==0.3.3 pydocstyle==1.0.0 pyflakes==1.2.2 - pyparsing==2.1.1 # rq.filter: != 2.1.2 + pyparsing==2.1.3 six==1.10.0 sortedcontainers==1.4.4 venusian==1.0