dalejung / asttools

ast tools
MIT License
0 stars 0 forks source link

Fix for Changes for function calling 3.4 -> 3.5 #5

Closed dalejung closed 8 years ago

dalejung commented 8 years ago

The Call node no longer has a kwargs attribute. Something like:

ast.parse("test(**locals())")

Will put the locals() call into the Call.keywords array. The only difference between the kwargs in 3.4 and keywords in 3.5 is that the stararg will create a `ast.keyword(arg=None, value=ast.Call(func=Name(id='locals'))

dalejung commented 8 years ago

A regular keyword won't have arg=None.

dalejung commented 8 years ago

4bb213f4276fac0f3f9288a059ff065f86d34f81

dalejung commented 8 years ago

454a9adc08b1234cee78d50c9bfb4eaba074d79f e06495439c1a97cb6023724699263ca83d315b89