From ce7f8fdc9213ab3ffae29ab438f592b0bbc8c12f Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Thu, 16 Jul 2020 03:34:34 +0000 Subject: [PATCH] Make optional arguments to fetch kwarg-only --- qwarc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qwarc/__init__.py b/qwarc/__init__.py index fa8eb19..7fdb92c 100644 --- a/qwarc/__init__.py +++ b/qwarc/__init__.py @@ -73,7 +73,7 @@ class Item: out.append((key, value)) return out - async def fetch(self, url, responseHandler = None, method = 'GET', data = None, headers = [], verify_ssl = True, timeout = 60, fromResponse = None): + async def fetch(self, url, *, responseHandler = None, method = 'GET', data = None, headers = [], verify_ssl = True, timeout = 60, fromResponse = None): ''' HTTP GET or POST a URL