diff options
author | Brett Cannon <brett@python.org> | 2014-08-29 12:26:21 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-08-29 12:26:21 -0400 |
commit | 8b9fc0af40addd94959a2676825f5605e8d6fecc (patch) | |
tree | 38f0d22cdceb90936b68ce001da447412b2c6055 /reporters | |
parent | a09fa4a4117b00a23a6e826dbce9754f107faa7e (diff) | |
download | pylint-git-8b9fc0af40addd94959a2676825f5605e8d6fecc.tar.gz |
Don't call unicode() directly
--HG--
branch : python_6
Diffstat (limited to 'reporters')
-rw-r--r-- | reporters/text.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reporters/text.py b/reporters/text.py index b7bbebb80..acb22b5b6 100644 --- a/reporters/text.py +++ b/reporters/text.py @@ -25,6 +25,7 @@ from logilab.common.textutils import colorize_ansi from pylint.interfaces import IReporter from pylint.reporters import BaseReporter +import six TITLE_UNDERLINES = ['', '=', '-', '.'] @@ -43,7 +44,7 @@ class TextReporter(BaseReporter): self._template = None def on_set_current_module(self, module, filepath): - self._template = unicode(self.linter.config.msg_template or self.line_format) + self._template = six.text_type(self.linter.config.msg_template or self.line_format) def write_message(self, msg): """Convenience method to write a formated message with class default template""" |