Add 'disable=protected-access' to satisfy pylint

This commit is contained in:
André Koch-Kramer 2018-04-20 18:47:36 +02:00
parent e689dadf00
commit c9198d232f

View File

@ -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 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. dictionary with keys username, profile_pic_url and id.
""" """
# pylint:disable=protected-access
if self.comments == 0: if self.comments == 0:
# Avoid doing additional requests if there are no comments # Avoid doing additional requests if there are no comments
return return
@ -397,6 +398,7 @@ class Post:
Each like is represented by a dictionary having the keys username, followed_by_viewer, id, is_verified, 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. requested_by_viewer, followed_by_viewer, profile_pic_url.
""" """
# pylint:disable=protected-access
if self.likes == 0: if self.likes == 0:
# Avoid doing additional requests if there are no comments # Avoid doing additional requests if there are no comments
return return