Skip to content

Commit

Permalink
Remove deprecated loop keyword argument (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair authored Jun 9, 2022
1 parent 8652805 commit 07ff582
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions parfive/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import asyncio
import logging
import pathlib
import warnings
import contextlib
import urllib.parse
from functools import partial, lru_cache
Expand Down Expand Up @@ -83,12 +82,9 @@ class Downloader:
"""

def __init__(self, max_conn=5, max_splits=5, progress=True, file_progress=True,
loop=None, notebook=None, overwrite=False, headers=None,
notebook=None, overwrite=False, headers=None,
use_aiofiles=False):

if loop:
warnings.warn('The loop argument is no longer used, and will be '
'removed in a future release.')
self.max_conn = max_conn if not SERIAL_MODE else 1
self.max_splits = max_splits if not SERIAL_MODE else 1
self._init_queues()
Expand Down

0 comments on commit 07ff582

Please # to comment.