Skip to content

Commit 4c1b779

Browse files
committed
Slightly improve consistency
1 parent 90b890a commit 4c1b779

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plyfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,10 @@ def consume(self, raw_line):
11501150

11511151
line = raw_line.strip()
11521152
if line == '':
1153-
return
1153+
# We silently skip empty header lines. This isn't strictly
1154+
# allowed in the spec, but this logic slightly improves
1155+
# interoperability with other tools.
1156+
return self._allowed
11541157
try:
11551158
keyword = line.split(None, 1)[0]
11561159
except IndexError:

0 commit comments

Comments
 (0)