From 5fd7619a158e6d7aa6d32e6f79dfd9805f6c6d18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 24 Apr 2021 21:33:58 +0200 Subject: [PATCH] Fix readlines() semantics https://docs.python.org/3/library/io.html?highlight=readlines#io.IOBase.readlines --- bin/pfa-from-incoming | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pfa-from-incoming b/bin/pfa-from-incoming index e4def7a..36f37a7 100755 --- a/bin/pfa-from-incoming +++ b/bin/pfa-from-incoming @@ -80,7 +80,7 @@ Subject: %s f=open("%s/files.diff" % tmpdir, 'r') sm.write("Difference between %s (currently in %s) and %s FILES\n" % (pkg.noarch_arch[rpmfile], repr(ftptree), arch)), - for line in f.readlines(True)[2:]: + for line in f.readlines()[2:]: sm.write(line) f.close() @@ -90,7 +90,7 @@ Subject: %s f=open("%s/reqs.diff" % tmpdir, 'r') sm.write("Difference between %s (currently in %s) and %s REQS\n" % (pkg.noarch_arch[rpmfile], repr(ftptree), arch)), - for line in f.readlines(True)[2:]: + for line in f.readlines()[2:]: sm.write(line) f.close() -- 2.44.0