pep8: Fix E211 violations.

This commit is contained in:
Vamshi Balanaga 2016-11-29 21:11:29 -05:00 committed by Tim Abbott
parent 6b0df43463
commit 5f60258a85
4 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ def check_pep8(files):
'E402', 'E501', 'W503', 'E711', 'E201', 'E203', 'E202', 'E128', 'E226', 'E124', 'E402', 'E501', 'W503', 'E711', 'E201', 'E203', 'E202', 'E128', 'E226', 'E124',
'E126', 'E127', 'E121', 'E122', 'E123', 'E266', 'E265', 'E261', 'E221', 'E303', 'E126', 'E127', 'E121', 'E122', 'E123', 'E266', 'E265', 'E261', 'E221', 'E303',
'E241', 'E712', 'E702', 'E401', 'E115', 'E114', 'E111', 'E731', 'E302', 'E129', 'E241', 'E712', 'E702', 'E401', 'E115', 'E114', 'E111', 'E731', 'E302', 'E129',
'E741', 'E714', 'W391', 'E211', 'E713', 'E502', 'E131', 'E305', 'E251', 'E306', 'E741', 'E714', 'W391', 'E713', 'E502', 'E131', 'E305', 'E251', 'E306',
] ]
pep8 = subprocess.Popen( pep8 = subprocess.Popen(
['pycodestyle'] + files + ['--ignore={rules}'.format(rules=','.join(ignored_rules))], ['pycodestyle'] + files + ['--ignore={rules}'.format(rules=','.join(ignored_rules))],

View File

@ -54,7 +54,7 @@ def get_changed_source_files(other_checkout):
# If git returned an error, assume we can't reuse any files, and # If git returned an error, assume we can't reuse any files, and
# regenerate everything. # regenerate everything.
print("Warning: git returned an error when comparing to the previous") print("Warning: git returned an error when comparing to the previous")
print ("deploy in %s. Will re-minify JavaScript instead of reusing" print("deploy in %s. Will re-minify JavaScript instead of reusing"
% (other_checkout,)) % (other_checkout,))
return None return None

View File

@ -691,7 +691,7 @@ def compute_mit_user_fullname(email):
except DNS.Base.ServerError: except DNS.Base.ServerError:
pass pass
except: except:
print ("Error getting fullname for %s:" % (email,)) print("Error getting fullname for %s:" % (email,))
traceback.print_exc() traceback.print_exc()
return email.lower() return email.lower()

View File

@ -1032,7 +1032,7 @@ class SubscriptionRestApiTest(ZulipTestCase):
user_profile.full_name = 'Hamlet' user_profile.full_name = 'Hamlet'
user_profile.save() user_profile.save()
def method1 (req, user_profile): def method1(req, user_profile):
# type: (HttpRequest, UserProfile) -> HttpResponse # type: (HttpRequest, UserProfile) -> HttpResponse
user_profile.full_name = 'Should not be committed' user_profile.full_name = 'Should not be committed'
user_profile.save() user_profile.save()