LineParser: Don't write anything without data

This commit is contained in:
Florian Bruhin 2016-06-08 10:36:30 +02:00
parent b09fe8dca0
commit c686008325

View File

@ -114,6 +114,8 @@ class BaseLineParser(QObject):
fp: A file object to write the data to.
data: The data to write.
"""
if not data:
return
if self._binary:
fp.write(b'\n'.join(data))
fp.write(b'\n')