Skip to content

Commit 2ff85a9

Browse files
committed
chore: fix pylint warning
Log:
1 parent da4a7d3 commit 2ff85a9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
devscripts (2.23.7) unstable; urgency=medium
28

39
[ Nicholas D Steeves ]

scripts/debbisect

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)