Skip to content

Commit

Permalink
removed extra blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
atait committed Dec 27, 2020
1 parent 0108a72 commit aac720d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pragma/core/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,8 @@ def inner(f):
func = glbls[f_mod.body[0].name]
if save_source:
func.__tempfile__ = temp
# When there are other decorators, the co_firstlineno of *some* python distributions gets confused
# and thinks they will be there even when they are not written to the file, causing readline overflow
# So we put some empty lines to make them align
temp.write('\n' * func.__code__.co_firstlineno)
if func.__code__.co_firstlineno > 1:
log.warning("Temporary source does not start on first line")
temp.write(source)
temp.flush()
temp.close()
Expand Down

0 comments on commit aac720d

Please sign in to comment.