mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-03 01:37:30 +08:00
Python 3.4 fixes.
This commit is contained in:
1 parent
7f6bef19e1
commit
3f836c5841
2 files changed
+12
-2
No files matched your search
@@ -292,6 +292,10 @@ def _get_actual_exception(code):
|
||||
# Python 2.6 has a bit different error messages here, so skip it.
|
||||
if sys.version_info[:2] == (2, 6) and wanted == 'SyntaxError: unexpected EOF while parsing':
|
||||
wanted = 'SyntaxError: invalid syntax'
|
||||
|
||||
if wanted == 'SyntaxError: non-keyword arg after keyword arg':
|
||||
# The python 3.5+ way, a bit nicer.
|
||||
wanted = 'SyntaxError: positional argument follows keyword argument'
|
||||
return wanted, line_nr
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user