mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-27 21:32:29 +08:00
Some Python2.7 fixes.
This commit is contained in:
@@ -8,8 +8,8 @@ versions, file caching, round-trips and other stuff:
|
||||
>>> expr = module.children[0]
|
||||
>>> expr
|
||||
PythonNode(arith_expr, [<Name: hello@1,0>, <Operator: +>, <Number: 1>])
|
||||
>>> expr.get_code()
|
||||
'hello + 1'
|
||||
>>> print(expr.get_code())
|
||||
hello + 1
|
||||
>>> name = expr.children[0]
|
||||
>>> name
|
||||
<Name: hello@1,0>
|
||||
|
||||
Reference in New Issue
Block a user