]> git.pld-linux.org Git - projects/pld-builder.new.git/blobdiff - PLD_Builder/file_sender.py
Fix iterators assumptions that are no longer valid in python3
[projects/pld-builder.new.git] / PLD_Builder / file_sender.py
index 4e90e5acb34f221cf2045bcc7292451de94fb961..44fdd8b1d1d5848e0c2457e001f419dfa8e35793 100644 (file)
@@ -24,7 +24,7 @@ def read_name_val(file):
     f = open(file)
     r = {'_file': file[:-5], '_desc': file}
     rx = re.compile(r"^([^:]+)\s*:(.*)$")
-    for l in f.xreadlines():
+    for l in f:
         if l == "END\n":
             f.close()
             return r
@@ -60,7 +60,7 @@ def rsync_file(src, target, host):
 
     p = open(path.rsync_password_file, "r")
     password = ""
-    for l in p.xreadlines():
+    for l in p:
         l = string.split(l)
         if len(l) >= 2 and l[0] == host:
             password = l[1]
This page took 0.140494 seconds and 4 git commands to generate.