Closed williamjamir closed 6 years ago
Just to add that when the comment is at the end of the file, but "inside" a function, the dump occurs just fine.
Before the dump:
from a.b import c
c
#Testing
#Test1
def a():
print('Hi')
# Last line of function
After the dump:
from a.b import d
d
#Testing
#Test1
def a():
print('Hi')
# Last line of function
Thanks! :) There needs to be a test for this. The last statement should probably get the suffix.
I put the suffix on the Module
node itself, I think that makes sense.
Hi again =)
I found this issue while running the following script "script.py "on file "rename.py" Script.py
File before the pasta.dump:
File after the pasta.dump:
I've noticed that this issue just occurs when the commentary is at the end of the file, without any more code after it.
So in this example, the pasta.dump works just fine:
After dump:
cc @nicoddemus