From 15fe3d5f2de3777c6c7488adc42c285df8863b6b Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 17 Jan 2019 18:38:57 +0100 Subject: [PATCH] doc: versionadded directive to new {write,get}_raw --- instaloader/instaloadercontext.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/instaloader/instaloadercontext.py b/instaloader/instaloadercontext.py index 3c1bf00..d0993cd 100644 --- a/instaloader/instaloadercontext.py +++ b/instaloader/instaloadercontext.py @@ -448,7 +448,9 @@ class InstaloaderContext: return self.get_json(path, params, 'i.instagram.com', tempsession) def write_raw(self, resp: Union[bytes, requests.Response], filename: str) -> None: - """Write raw response data into a file.""" + """Write raw response data into a file. + + .. versionadded:: 4.2.1""" self.log(filename, end=' ', flush=True) with open(filename, 'wb') as file: if isinstance(resp, requests.Response): @@ -461,7 +463,9 @@ class InstaloaderContext: :raises QueryReturnedNotFoundException: When the server responds with a 404. :raises QueryReturnedForbiddenException: When the server responds with a 403. - :raises ConnectionException: When download repeatedly failed.""" + :raises ConnectionException: When download repeatedly failed. + + .. versionadded:: 4.2.1""" try: with self.get_anonymous_session() as anonymous_session: resp = anonymous_session.get(url, stream=True)