Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Update flake8 conf and fix linting errors.
Browse files Browse the repository at this point in the history
A pep8 / pyflakes update surfaced a few linting errors.
  • Loading branch information
glogiotatidis committed Apr 7, 2014
1 parent e1d99ab commit baec2a6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions mozillians/common/browserid_mock.py
Expand Up @@ -25,13 +25,13 @@ def __init__(self, email=None):
self.return_value = {'status': 'failure'}

def __enter__(self):
for patch in self.settings_patches:
patch.start()
for settings_patch in self.settings_patches:
settings_patch.start()
self.patcher.start().return_value = self.return_value

def __exit__(self, exc_type, exc_value, traceback):
for patch in self.settings_patches:
patch.stop()
for settings_patch in self.settings_patches:
settings_patch.stop()
self.patcher.stop()

def __call__(self, func):
Expand Down
4 changes: 2 additions & 2 deletions mozillians/groups/tests/test_views_misc.py
Expand Up @@ -157,8 +157,8 @@ def test_basic_group_creation_as_non_manager(self):
'irc_channel': u'some text, this is not validated',
'website': u'http://mozillians.org',
'wiki': u'http://wiki.mozillians.org',
#'members_can_leave': not checked
#'visible': not checked
# 'members_can_leave': not checked
# 'visible': not checked
'functional_area': 'checked', # should be ignored
'accepting_new_members': 'yes',
'members_can_leave': False, # should be ignored
Expand Down
2 changes: 1 addition & 1 deletion mozillians/users/api.py
Expand Up @@ -146,7 +146,7 @@ def collapse_locations(obj_list, keyname):
locations = locations.itervalues()
# Now we have an iterable of dicts, but an iterable is not a queryset
queryset = FakeQuerySet(locations)
# And let's make it a CustomQuerySet again
# And let's make it a CustomQuerySet again
queryset = CustomQuerySet(queryset)
return queryset

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
@@ -1,4 +1,4 @@
[flake8]
ignore=E121,E123,E124,E125,E126
ignore=E121,E123,E124,E125,E126,E129
max-line-length=100
exclude=migrations

0 comments on commit baec2a6

Please sign in to comment.