X-Git-Url: https://git.tld-linux.org/?p=tld-builder.git;a=blobdiff_plain;f=TLD_Builder%2Fbqueue.py;fp=TLD_Builder%2Fbqueue.py;h=f90de620a40bfe5e93074492ce90967ae6834f13;hp=131b911e74037f176ac569d670094358e7326138;hb=a68953c88fba6e657febf9cb06273f44288f759c;hpb=4c1b8295857d2b8d2b2975c4030d61c3f1b61bcb diff --git a/TLD_Builder/bqueue.py b/TLD_Builder/bqueue.py index 131b911..f90de62 100644 --- a/TLD_Builder/bqueue.py +++ b/TLD_Builder/bqueue.py @@ -133,7 +133,7 @@ class B_Queue: sio.seek(0) (fdno, tmpname) = tempfile.mkstemp(dir=os.path.dirname(name)) f = os.fdopen(fdno, "w") - util.sendfile(sio, f) + shutil.copyfileobj(sio, f) f.flush() os.fsync(f.fileno()) f.close()