From c9198d232f668c7f26279aa1934f97d4665f7a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Koch-Kramer?= Date: Fri, 20 Apr 2018 18:47:36 +0200 Subject: [PATCH] Add 'disable=protected-access' to satisfy pylint --- instaloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instaloader.py b/instaloader.py index 983081d..90a5cb6 100755 --- a/instaloader.py +++ b/instaloader.py @@ -377,6 +377,7 @@ class Post: Each comment is represented by a dictionary having the keys text, created_at, id and owner, which is a dictionary with keys username, profile_pic_url and id. """ + # pylint:disable=protected-access if self.comments == 0: # Avoid doing additional requests if there are no comments return @@ -397,6 +398,7 @@ class Post: Each like is represented by a dictionary having the keys username, followed_by_viewer, id, is_verified, requested_by_viewer, followed_by_viewer, profile_pic_url. """ + # pylint:disable=protected-access if self.likes == 0: # Avoid doing additional requests if there are no comments return