mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 21:25:28 +08:00
Remove pr.Name completely.
This commit is contained in:
1 parent
4d7db35340
commit
522c9eda90
4 files changed
+9
-77
No files matched your search
@@ -1,18 +1,9 @@
|
||||
from jedi._compatibility import unicode
|
||||
|
||||
from jedi.evaluate import helpers
|
||||
from jedi.parser import representation as pr
|
||||
from jedi.parser import Parser
|
||||
|
||||
|
||||
def test_deep_ast_copy():
|
||||
name = pr.Name(object, [('hallo', (0, 0))], (0, 0), (0, 0))
|
||||
|
||||
# fast parent copy should switch parent
|
||||
new_name = helpers.deep_ast_copy(name)
|
||||
assert new_name.names[0].parent == new_name
|
||||
|
||||
|
||||
def test_statement_elements_in_statement():
|
||||
def get_stmt_els(string):
|
||||
p = Parser(unicode(string))
|
||||
|
||||
Reference in new issue
Block a user