summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/asdl_c.py')
-rw-r--r--Parser/asdl_c.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index f6c3a66..a43d2e7 100644
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -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):