diff options
author | liyi <liyi8611@gmail.com> | 2017-03-21 12:17:51 +0800 |
---|---|---|
committer | liyi <liyi8611@gmail.com> | 2017-03-25 17:11:50 +0800 |
commit | 8f10215ffde82b9ba1e0da28c70078953b61a9c8 (patch) | |
tree | 79b2edced88d836ee95cc3625e9f8ef5d892096b /tools/custom_guidelines.py | |
parent | 34df3cd9150c56a4b8f6532ccfbff6859b947cf2 (diff) | |
download | heat-8f10215ffde82b9ba1e0da28c70078953b61a9c8.tar.gz |
Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.
See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html
Change-Id: Ieec8028305099422e1b0f8fc84bc90c9ca6c694f
Diffstat (limited to 'tools/custom_guidelines.py')
-rw-r--r-- | tools/custom_guidelines.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/custom_guidelines.py b/tools/custom_guidelines.py index 39d39981a..bf00165db 100644 --- a/tools/custom_guidelines.py +++ b/tools/custom_guidelines.py @@ -19,7 +19,6 @@ from oslo_log import log import six from heat.common.i18n import _ -from heat.common.i18n import _LW from heat.engine import constraints from heat.engine import resources from heat.engine import support @@ -155,8 +154,8 @@ class HeatCustomGuidelines(object): try: cls_file = open(cls.__module__.replace('.', '/') + '.py') except IOError as ex: - LOG.warning(_LW('Cannot perform trailing spaces check on ' - 'resource module: %s') % six.text_type(ex)) + LOG.warning('Cannot perform trailing spaces check on ' + 'resource module: %s', six.text_type(ex)) continue lines = [line.strip() for line in cls_file.readlines()] idx = 0 |