lint: Clean up E126 PEP-8 rule.

This commit is contained in:
Tim Abbott 2017-01-23 22:06:13 -08:00
parent 31e7dcd86b
commit 4e171ce787
60 changed files with 429 additions and 432 deletions

View File

@ -952,7 +952,7 @@ def realm_user_summary_table(all_records, admin_emails):
'Pointer motion',
'Desktop',
'ZulipiOS',
'Android'
'Android',
]
title = 'Summary'

View File

@ -84,10 +84,6 @@ def check_pep8(files):
ignored_rules = [
# Each of these rules are ignored for the explained reason.
# 'continuation line over-indented for hanging indent'
# Most of these we should probably clean up.
'E126',
# "multiple spaces before operator"
# There are several typos here, but also several instances that are
# being used for alignment in dict keys/values using the `dict`

View File

@ -1362,8 +1362,8 @@ def do_convert(content, message=None, message_realm=None, possible_words=None):
error_bot_realm = get_user_profile_by_email(settings.ERROR_BOT).realm
internal_send_message(error_bot_realm, settings.ERROR_BOT, "stream",
"errors", subject, "Markdown parser failed, email sent with details.")
mail.mail_admins(subject, "Failed message: %s\n\n%s\n\n" % (
cleaned, traceback.format_exc()),
mail.mail_admins(
subject, "Failed message: %s\n\n%s\n\n" % (cleaned, traceback.format_exc()),
fail_silently=False)
raise BugdownRenderingException()
finally:

View File

@ -80,7 +80,8 @@ class PointerTest(ZulipTestCase):
class UnreadCountTests(ZulipTestCase):
def setUp(self):
# type: () -> None
self.unread_msg_ids = [self.send_message(
self.unread_msg_ids = [
self.send_message(
"iago@zulip.com", "hamlet@zulip.com", Recipient.PERSONAL, "hello"),
self.send_message(
"iago@zulip.com", "hamlet@zulip.com", Recipient.PERSONAL, "hello2")]