File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ devscripts (2.23.7+0deepin1) unstable; urgency=medium
2+
3+ * Fix pylint warning.
4+
5+ -- xiangzelong <xiangzelong@deepin.org> Thu, 12 Sep 2024 14:05:28 +0800
6+
17devscripts (2.23.7) unstable; urgency=medium
28
39 [ Nicholas D Steeves ]
Original file line number Diff line number Diff line change @@ -198,9 +198,8 @@ class Proxy(http.server.SimpleHTTPRequestHandler):
198198 totalsize = int (f .headers ["Content-Length" ])
199199 while downloaded < totalsize :
200200 chunksize = 200 * 1024
201- if totalsize - downloaded < chunksize :
202- chunksize = totalsize - downloaded
203- buf = f .read (chunksize ) # 200 kB/s
201+ chunksize = min (chunksize , totalsize - downloaded )
202+ buf = f .read (chunksize )
204203 if len (buf ) != chunksize :
205204 # something went wrong
206205 logging .warning (
You can’t perform that action at this time.
0 commit comments