diff --git a/lbrynet/core/client/StreamProgressManager.py b/lbrynet/core/client/StreamProgressManager.py index ffe134d06..5fc36d451 100644 --- a/lbrynet/core/client/StreamProgressManager.py +++ b/lbrynet/core/client/StreamProgressManager.py @@ -101,7 +101,7 @@ class FullStreamProgressManager(StreamProgressManager): if not blobs: return 0 else: - for i in xrange(max(blobs.iterkeys())): + for i in range(max(blobs.iterkeys())): if self._done(i, blobs): return i return max(blobs.iterkeys()) + 1 diff --git a/tests/functional/test_reflector.py b/tests/functional/test_reflector.py index 1f6eef584..306aaee23 100644 --- a/tests/functional/test_reflector.py +++ b/tests/functional/test_reflector.py @@ -81,7 +81,7 @@ class TestReflector(unittest.TestCase): return d def create_stream(): - test_file = mocks.GenFile(5209343, b''.join([chr(i + 3) for i in xrange(0, 64, 6)])) + test_file = mocks.GenFile(5209343, b''.join([chr(i + 3) for i in range(0, 64, 6)])) d = EncryptedFileCreator.create_lbry_file( self.client_blob_manager, self.client_storage, prm, self.client_lbry_file_manager, "test_file", diff --git a/tests/functional/test_streamify.py b/tests/functional/test_streamify.py index ce6952f72..6f084e73a 100644 --- a/tests/functional/test_streamify.py +++ b/tests/functional/test_streamify.py @@ -81,7 +81,7 @@ class TestStreamify(TestCase): yield "%016d" % iv def create_stream(): - test_file = GenFile(5209343, b''.join([chr(i + 3) for i in xrange(0, 64, 6)])) + test_file = GenFile(5209343, b''.join([chr(i + 3) for i in range(0, 64, 6)])) d = create_lbry_file( self.blob_manager, self.storage, self.prm, self.lbry_file_manager, "test_file", test_file, key="0123456701234567", iv_generator=iv_generator() @@ -95,7 +95,7 @@ class TestStreamify(TestCase): @defer.inlineCallbacks def test_create_and_combine_stream(self): - test_file = GenFile(53209343, b''.join([chr(i + 5) for i in xrange(0, 64, 6)])) + test_file = GenFile(53209343, b''.join([chr(i + 5) for i in range(0, 64, 6)])) lbry_file = yield create_lbry_file(self.blob_manager, self.storage, self.prm, self.lbry_file_manager, "test_file", test_file) sd_hash = yield self.storage.get_sd_blob_hash_for_stream(lbry_file.stream_hash)