From 3ba41de2ba854311ecd03451abdf95eb13d87513 Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Mon, 1 Jun 2015 19:16:58 +0000 Subject: [PATCH] Split Reporter priority constants (improves docs readability). --- letsencrypt/reporter.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/letsencrypt/reporter.py b/letsencrypt/reporter.py index 99586d7cf..7dfacaf14 100644 --- a/letsencrypt/reporter.py +++ b/letsencrypt/reporter.py @@ -18,7 +18,13 @@ class Reporter(object): """ zope.interface.implements(interfaces.IReporter) - HIGH_PRIORITY, MEDIUM_PRIORITY, LOW_PRIORITY = xrange(3) + HIGH_PRIORITY = 0 + """High priority constant. See `add_message`.""" + MEDIUM_PRIORITY = 1 + """Medium priority constant. See `add_message`.""" + LOW_PRIORITY = 2 + """Low priority constant. See `add_message`.""" + _RESET = '\033[0m' _BOLD = '\033[1m' _msg_type = collections.namedtuple('ReporterMsg', 'priority text on_crash')