Skip to content

Commit

Permalink
Remove false positive comments
Browse files Browse the repository at this point in the history
pylint 1.9.2 has been released.
  • Loading branch information
hvelarde committed Jun 6, 2018
1 parent c334d23 commit 591e7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions sc/social/like/plugins/facebook/utils.py
Expand Up @@ -42,6 +42,5 @@ def facebook_language(languages, default):
return default
languages = [languages] if not isinstance(languages, list) else languages
languages = [fix_iso(l) for l in languages]
# XXX: https://github.com/PyCQA/pylint/issues/2106
prefered = [l for l in languages if l in FB_LOCALES] # noqa: E501; pylint: disable=comprehension-escape
prefered = [l for l in languages if l in FB_LOCALES]
return prefered and prefered[0] or default
2 changes: 1 addition & 1 deletion sc/social/like/tests/test_upgrades.py
Expand Up @@ -190,7 +190,7 @@ def test_register_cover_tiles(self):
self.execute_upgrade_step(step)

registered = api.portal.get_registry_record('plone.app.tiles')
[self.assertIn(t, registered) for t in TILES] # noqa: E501; pylint: disable=W1662
[self.assertIn(t, registered) for t in TILES]


class To3042TestCase(UpgradeTestCaseBase):
Expand Down

0 comments on commit 591e7b7

Please sign in to comment.