From 5a98bc61ac6abe9c15ff6a154aee271490a666f0 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Sun, 7 Nov 2021 01:14:07 +0100 Subject: [PATCH] =?UTF-8?q?Ovvpfile:=20Trivi=C3=A1ln=C3=AD=20=C3=BApravy?= =?UTF-8?q?=20k=C3=B3du?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pylintu se to nelíbilo a mně dávalo smysl to opravit, teď je to snad čitelnější… --- aesop/ovvpfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aesop/ovvpfile.py b/aesop/ovvpfile.py index a9d67c43..4d58af35 100644 --- a/aesop/ovvpfile.py +++ b/aesop/ovvpfile.py @@ -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'