sympy/sympy-sympify.patch

12 lines
547 B
Diff

--- sympy-sympy-1.3/sympy/core/sympify.py.orig 2018-09-14 12:51:02.000000000 -0600
+++ sympy-sympy-1.3/sympy/core/sympify.py 2019-01-29 21:12:59.797604449 -0700
@@ -366,7 +366,7 @@ def sympify(a, locals=None, convert_xor=
try:
a = a.replace('\n', '')
expr = parse_expr(a, local_dict=locals, transformations=transformations, evaluate=evaluate)
- except (TokenError, SyntaxError) as exc:
+ except (TokenError, SyntaxError, TypeError) as exc:
raise SympifyError('could not parse %r' % a, exc)
return expr