Body doesn't contain any code
101 downloader.start()
102
103 # Wait until we know file size
104 while downloader.total_length == 0:105 pass
106
107 file_size = downloader.total_length
Description
In most cases, an empty body of for
, while
or if
implies some piece of code is missing.
Such empty block must be either filled or removed.
Bad practice
for i in range(10):
pass
Preferred:
for i in range(10):
print(i)