mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 09:46:18 +00:00
== instead of is for string comparison
This commit is contained in:
parent
1db86c681b
commit
e36c850da4
@ -370,7 +370,7 @@ class FileDownloader(rend.Page):
|
||||
def parse_range(r):
|
||||
first, last = r.split('-', 1)
|
||||
|
||||
if first is '':
|
||||
if first == '':
|
||||
# suffix-byte-range-spec
|
||||
first = filesize - long(last)
|
||||
last = filesize - 1
|
||||
@ -381,7 +381,7 @@ class FileDownloader(rend.Page):
|
||||
first = long(first)
|
||||
|
||||
# last-byte-pos
|
||||
if last is '':
|
||||
if last == '':
|
||||
last = filesize - 1
|
||||
else:
|
||||
last = long(last)
|
||||
|
Loading…
x
Reference in New Issue
Block a user