make 'method' argument of Extractor.request keyword-only

This commit is contained in:
Mike Fährmann
2019-11-05 17:28:09 +01:00
parent a5be08a830
commit de83ae4576
4 changed files with 8 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ class Extractor():
return config.interpolate(
("extractor", self.category, self.subcategory, key), default)
def request(self, url, method="GET", *, session=None, retries=None,
def request(self, url, *, method="GET", session=None, retries=None,
encoding=None, fatal=True, notfound=None, **kwargs):
tries = 1
retries = self._retries if retries is None else retries