pep8: Fix E502 violations

This commit is contained in:
bulat22101 2016-12-03 17:07:49 +00:00 committed by Tim Abbott
parent 25a8315f71
commit dc48a41efe
5 changed files with 7 additions and 7 deletions

View file

@ -42,7 +42,7 @@ def do_send_message(client, message_data):
'''Sends a message and optionally prints status about the same.''' '''Sends a message and optionally prints status about the same.'''
if message_data['type'] == 'stream': if message_data['type'] == 'stream':
log.info('Sending message to stream "%s", subject "%s"... ' % \ log.info('Sending message to stream "%s", subject "%s"... ' %
(message_data['to'], message_data['subject'])) (message_data['to'], message_data['subject']))
else: else:
log.info('Sending message to %s... ' % message_data['to']) log.info('Sending message to %s... ' % message_data['to'])

View file

@ -328,11 +328,11 @@ for key in all_keys:
continue continue
if key in zhkeys: if key in zhkeys:
(stream, test) = zhkeys[key] (stream, test) = zhkeys[key]
logger.warning("%10s: z got %s, h got %s. Sent via Zephyr(%s): class %s" % \ logger.warning("%10s: z got %s, h got %s. Sent via Zephyr(%s): class %s" %
(key, z_key_counts[key], h_key_counts[key], test, stream)) (key, z_key_counts[key], h_key_counts[key], test, stream))
if key in hzkeys: if key in hzkeys:
(stream, test) = hzkeys[key] (stream, test) = hzkeys[key]
logger.warning("%10s: z got %s. h got %s. Sent via Zulip(%s): class %s" % \ logger.warning("%10s: z got %s. h got %s. Sent via Zulip(%s): class %s" %
(key, z_key_counts[key], h_key_counts[key], test, stream)) (key, z_key_counts[key], h_key_counts[key], test, stream))
logger.error("") logger.error("")
logger.error("Summary of specific problems:") logger.error("Summary of specific problems:")

View file

@ -317,7 +317,7 @@ user and mirrors messages sent to Jabber rooms to Zulip. Defaults to
parser.add_option('--zulip-email-suffix', parser.add_option('--zulip-email-suffix',
default=None, default=None,
action='store', action='store',
help= \ help=
'''Add the specified suffix to the local part of email addresses constructed '''Add the specified suffix to the local part of email addresses constructed
from JIDs and nicks before sending requests to the Zulip server, and remove the from JIDs and nicks before sending requests to the Zulip server, and remove the
suffix before sending requests to the Jabber server. For example, specifying suffix before sending requests to the Jabber server. For example, specifying

View file

@ -208,9 +208,9 @@ def process_new_events():
""" """
# In task queries, Asana only exposes IDs for projects and users, so we need # In task queries, Asana only exposes IDs for projects and users, so we need
# to look up the mappings. # to look up the mappings.
projects = dict((elt["id"], elt["name"]) for elt in \ projects = dict((elt["id"], elt["name"]) for elt in
fetch_from_asana("/projects")["data"]) fetch_from_asana("/projects")["data"])
users = dict((elt["id"], elt["name"]) for elt in \ users = dict((elt["id"], elt["name"]) for elt in
fetch_from_asana("/users")["data"]) fetch_from_asana("/users")["data"])
cutoff = since() cutoff = since()

View file

@ -312,7 +312,7 @@ class Client(object):
return False return False
if self.verbose: if self.verbose:
if not query_state["had_error_retry"]: if not query_state["had_error_retry"]:
sys.stdout.write("zulip API(%s): connection error%s -- retrying." % \ sys.stdout.write("zulip API(%s): connection error%s -- retrying." %
(url.split(API_VERSTRING, 2)[0], error_string,)) (url.split(API_VERSTRING, 2)[0], error_string,))
query_state["had_error_retry"] = True query_state["had_error_retry"] = True
else: else: