mirror of https://github.com/python/cpython
bpo-31464: asdl_c.py no longer emits trailing spaces in Python-ast.h. (#3568)
This commit is contained in:
parent
b2e5794870
commit
5d84cb368c
|
@ -94,8 +94,9 @@ class EmitVisitor(asdl.VisitorBase):
|
|||
else:
|
||||
lines = [s]
|
||||
for line in lines:
|
||||
line = (" " * TABSIZE * depth) + line + "\n"
|
||||
self.file.write(line)
|
||||
if line:
|
||||
line = (" " * TABSIZE * depth) + line
|
||||
self.file.write(line + "\n")
|
||||
|
||||
|
||||
class TypeDefVisitor(EmitVisitor):
|
||||
|
|
Loading…
Reference in New Issue