aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bauman <bman@gentoo.org>2020-08-06 00:05:20 -0400
committerZac Medico <zmedico@gentoo.org>2020-08-05 23:06:07 -0700
commit897be5c2874ed3edda7b3af84e6ddb34c3095b71 (patch)
tree008fc34961b232d0ce57c102de0e93a81622e7b4 /lib/portage/news.py
parentpylintrc: enable multiple-imports check (diff)
downloadportage-897be5c2874ed3edda7b3af84e6ddb34c3095b71.tar.gz
portage-897be5c2874ed3edda7b3af84e6ddb34c3095b71.tar.bz2
portage-897be5c2874ed3edda7b3af84e6ddb34c3095b71.zip
lib/*: fix superfluous-parens and enable check
Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/portage/news.py')
-rw-r--r--lib/portage/news.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/portage/news.py b/lib/portage/news.py
index 21a7c6a1f..3d6b04e1e 100644
--- a/lib/portage/news.py
+++ b/lib/portage/news.py
@@ -346,8 +346,8 @@ class DisplayProfileRestriction(DisplayRestriction):
def checkRestriction(self, **kwargs):
if fnmatch.fnmatch(self.format, '2.*') and self.profile.endswith('/*'):
- return (kwargs['profile'].startswith(self.profile[:-1]))
- return (kwargs['profile'] == self.profile)
+ return kwargs['profile'].startswith(self.profile[:-1])
+ return kwargs['profile'] == self.profile
class DisplayKeywordRestriction(DisplayRestriction):
"""