Closed berkerpeksag closed 6 years ago
Do you have a particular solution in mind? Or am I free to adjust this? I don't image its technically part of your public API.
I'm planning to rename async
to is_async
. Would you like to submit a PR?
Also, I wonder if we can drop the async
keyword argument and replace
prefix = 'async ' if async else ''
with
prefix = 'async ' if self.get_is_async(node) else ''
in visit_FunctionDef
.
Yeah, sure, I can do that.
(Sorry, I should have foreseen that this was going to be a problem in #19)
The following code won't work in Python 3.7:
https://github.com/berkerpeksag/astor/blob/5f189fc5cae9a5c3ca75bc204a8ac9a361b4bcc7/astor/code_gen.py#L311
Full list: