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:
parent
0f381a7529
commit
5a98bc61ac
1 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@ class OvvpFile:
|
||||||
def to_lines(self):
|
def to_lines(self):
|
||||||
# header
|
# header
|
||||||
for hk in sorted(self.headers.keys()):
|
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'
|
yield '\n'
|
||||||
# columns
|
# columns
|
||||||
yield '\t'.join([c for c in self.columns]) + '\n'
|
yield '\t'.join(self.columns) + '\n'
|
||||||
# rows
|
# rows
|
||||||
for r in self.rows:
|
for r in self.rows:
|
||||||
yield '\t'.join([force_text(r[c]) for c in self.columns]) + '\n'
|
yield '\t'.join([force_text(r[c]) for c in self.columns]) + '\n'
|
||||||
|
|
Loading…
Reference in a new issue