From: Harmon Date: Fri, 29 Jan 2021 17:18:39 +0000 (-0600) Subject: Change return_cursors parse methods parameter to be keyword-only X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=56b8e319a874f6d4cfae7dc9f7c33f32ceea83f4;p=tweepy.git Change return_cursors parse methods parameter to be keyword-only Change JSONParser.parse and ModelParser.parse return_cursors parameter to be keyword-only argument --- diff --git a/tweepy/parsers.py b/tweepy/parsers.py index 51fee05..fb5efde 100644 --- a/tweepy/parsers.py +++ b/tweepy/parsers.py @@ -43,7 +43,7 @@ class JSONParser(Parser): payload_format = 'json' - def parse(self, method, payload, return_cursors=False): + def parse(self, method, payload, *, return_cursors=False): try: json = json_lib.loads(payload) except Exception as e: @@ -81,7 +81,7 @@ class ModelParser(JSONParser): JSONParser.__init__(self) self.model_factory = model_factory or ModelFactory - def parse(self, method, payload, return_cursors=False): + def parse(self, method, payload, *, return_cursors=False): try: if method.payload_type is None: return