mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-24 20:12:38 +08:00
Better __future__ import handling for those that don't exist.
This commit is contained in:
@@ -5,6 +5,9 @@ gather some of the potentially dangerous ones.
|
||||
|
||||
from __future__ import division
|
||||
|
||||
# With a dot it's not a future import anymore.
|
||||
from .__future__ import absolute_import
|
||||
|
||||
'' ''
|
||||
''r''u''
|
||||
b'' BR''
|
||||
|
||||
@@ -73,6 +73,9 @@ def test_indentation_errors(code, positions):
|
||||
'try: pass\nexcept: pass\nexcept X: pass',
|
||||
'f(x for x in bar, 1)',
|
||||
'from foo import a,',
|
||||
'from __future__ import whatever',
|
||||
'from __future__ import braces',
|
||||
'from .__future__ import whatever',
|
||||
'def f(x=3, y): pass',
|
||||
'lambda x=3, y: x',
|
||||
#'None = 1',
|
||||
|
||||
Reference in New Issue
Block a user