scripts: Text-wrap long lines exceeding 110.

This commit is contained in:
rht
2017-11-08 03:40:04 +01:00
committed by Tim Abbott
parent 51c1a6dfc9
commit 53e37aa511
2 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,8 @@ if __name__ == '__main__':
def get_dev_uuid_var_path(create_if_missing=False):
# type: (bool) -> str
zulip_path = os.path.realpath(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))))
zulip_path = os.path.realpath(os.path.dirname(os.path.dirname(
os.path.dirname(os.path.realpath(__file__)))))
uuid_path = os.path.join(os.path.realpath(os.path.dirname(zulip_path)), ".zulip-dev-uuid")
if os.path.exists(uuid_path):
with open(uuid_path) as f:

View File

@@ -63,6 +63,7 @@ if not set(warn_queues) - set(("missedmessage_emails", "digest_emails")) and \
exit(0)
if status > 0:
print("%s|%s|%s|max count %s, queues affected: %s" % (now, status, states[status], max_count, warn_about))
print("%s|%s|%s|max count %s, queues affected: %s" % (
now, status, states[status], max_count, warn_about))
else:
print("%s|%s|%s|queues normal, max count %s" % (now, status, states[status], max_count))