Rename certbot.le_util to certbot.util

Also rename certbot/tests/le_util_test.py to certbot/tests/util_test.py
This commit is contained in:
Blake Griffith
2016-05-25 18:50:02 -05:00
parent 97aef8af66
commit d9d2377242
27 changed files with 138 additions and 140 deletions
+4 -4
View File
@@ -11,7 +11,7 @@ from six.moves import queue # pylint: disable=import-error
import zope.interface
from certbot import interfaces
from certbot import le_util
from certbot import util
logger = logging.getLogger(__name__)
@@ -79,7 +79,7 @@ class Reporter(object):
bold_on = sys.stdout.isatty()
if not self.config.quiet:
if bold_on:
print(le_util.ANSI_SGR_BOLD)
print(util.ANSI_SGR_BOLD)
print('IMPORTANT NOTES:')
first_wrapper = textwrap.TextWrapper(
initial_indent=' - ', subsequent_indent=(' ' * 3))
@@ -96,7 +96,7 @@ class Reporter(object):
if no_exception or msg.on_crash:
if bold_on and msg.priority > self.HIGH_PRIORITY:
if not self.config.quiet:
sys.stdout.write(le_util.ANSI_SGR_RESET)
sys.stdout.write(util.ANSI_SGR_RESET)
bold_on = False
lines = msg.text.splitlines()
print(first_wrapper.fill(lines[0]))
@@ -104,4 +104,4 @@ class Reporter(object):
print("\n".join(
next_wrapper.fill(line) for line in lines[1:]))
if bold_on and not self.config.quiet:
sys.stdout.write(le_util.ANSI_SGR_RESET)
sys.stdout.write(util.ANSI_SGR_RESET)