Browse Source

Ovvpfile: Triviální úpravy kódu

pylintu se to nelíbilo a mně dávalo smysl to opravit, teď je to snad
čitelnější…
export_seznamu_prednasek
Pavel "LEdoian" Turinsky 3 years ago
parent
commit
5a98bc61ac
  1. 4
      aesop/ovvpfile.py

4
aesop/ovvpfile.py

@ -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…
Cancel
Save