Ovvpfile: Triviální úpravy kódu

pylintu se to nelíbilo a mně dávalo smysl to opravit, teď je to snad
čitelnější…
This commit is contained in:
Pavel "LEdoian" Turinsky 2021-11-07 01:14:07 +01:00
parent 0f381a7529
commit 5a98bc61ac

View file

@ -14,10 +14,10 @@ class OvvpFile:
def to_lines(self):
# header
for hk in sorted(self.headers.keys()):
yield '%s\t%s\n' % (hk, self.headers[hk])
yield f'{hk}\t{self.headers[hk]}\n'
yield '\n'
# columns
yield '\t'.join([c for c in self.columns]) + '\n'
yield '\t'.join(self.columns) + '\n'
# rows
for r in self.rows:
yield '\t'.join([force_text(r[c]) for c in self.columns]) + '\n'