From 07ff5822779de03b779a45921ae66863d4eaa498 Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Thu, 9 Jun 2022 12:02:53 +0200 Subject: [PATCH] Remove deprecated loop keyword argument (#88) --- parfive/downloader.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/parfive/downloader.py b/parfive/downloader.py index 76e8807e..9c42730f 100644 --- a/parfive/downloader.py +++ b/parfive/downloader.py @@ -3,7 +3,6 @@ import asyncio import logging import pathlib -import warnings import contextlib import urllib.parse from functools import partial, lru_cache @@ -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()