Remove reduant check of list.
Remove len() check and parenthesis. Fixes Bug #1136893 Change-Id: Ib47ec4890c2f6a50e316a7fef204ef818c6c4d6e
This commit is contained in:
parent
d69509a779
commit
b715eb5d18
@ -207,7 +207,7 @@ class DiskFile(object):
|
|||||||
|
|
||||||
def app_iter_ranges(self, ranges, content_type, boundary, size):
|
def app_iter_ranges(self, ranges, content_type, boundary, size):
|
||||||
"""Returns an iterator over the data file for a set of ranges"""
|
"""Returns an iterator over the data file for a set of ranges"""
|
||||||
if (not ranges or len(ranges) == 0):
|
if not ranges:
|
||||||
yield ''
|
yield ''
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user