]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
Fix readlines() semantics
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 24 Apr 2021 19:33:58 +0000 (21:33 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 24 Apr 2021 19:33:58 +0000 (21:33 +0200)
https://docs.python.org/3/library/io.html?highlight=readlines#io.IOBase.readlines

bin/pfa-from-incoming

index e4def7a2752537ca5a35aa149ca1a12bfef98e06..36f37a7c92de54630f64422a6e7d075ddba0815b 100755 (executable)
@@ -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()
 
This page took 0.242707 seconds and 4 git commands to generate.