Skip to content

Commit

Permalink
Ignore Pylint's false positive warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed May 30, 2018
1 parent 2f2272f commit 60c1af9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sc/social/like/plugins/facebook/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +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]
prefered = [l for l in languages if l in FB_LOCALES]
prefered = [l for l in languages if l in FB_LOCALES] # noqa: E501; pylint: disable=W1662
return prefered and prefered[0] or default
2 changes: 1 addition & 1 deletion sc/social/like/tests/test_upgrades.py
Original file line number Diff line number Diff line change
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]
[self.assertIn(t, registered) for t in TILES] # noqa: E501; pylint: disable=W1662


class To3042TestCase(UpgradeTestCaseBase):
Expand Down

0 comments on commit 60c1af9

Please sign in to comment.