Skip to content

Commit

Permalink
Make the last byte comparision int-int rather than int-str.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen McMillen committed Jan 20, 2015
1 parent 88e9d16 commit 4bda1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimeo/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _get_progress(self, upload_target, filesize):
range_recv = progress_response.headers.get('Range', None)
_, last_byte = range_recv.split('-')

return last_byte
return int(last_byte)

def _make_pass(self, upload_target, f, size, last_byte):
"""Make a pass at uploading.
Expand Down

0 comments on commit 4bda1ed

Please sign in to comment.