X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=TLD_Builder%2Futil.py;h=b6bcc2460ff2053fc5494f72e3c6215b6efcbc78;hb=98894bf10f64d2133335f23117234f9f9ebefe0d;hp=1d485a170c20378fab39a6ad092f1fd04a5dc1ee;hpb=9ea122b00e3a99b16246e1e38576916a2e25c0aa;p=tld-builder.git diff --git a/TLD_Builder/util.py b/TLD_Builder/util.py index 1d485a1..b6bcc24 100644 --- a/TLD_Builder/util.py +++ b/TLD_Builder/util.py @@ -36,7 +36,7 @@ def sendfile(src, dst): cnt = 0 while 1: s = src.read(10000) - if s == "": break + if s == "" or s == b"": break cnt += len(s) dst.write(s) return cnt