summaryrefslogtreecommitdiff
path: root/reporters
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-08-29 12:26:21 -0400
committerBrett Cannon <brett@python.org>2014-08-29 12:26:21 -0400
commit8b9fc0af40addd94959a2676825f5605e8d6fecc (patch)
tree38f0d22cdceb90936b68ce001da447412b2c6055 /reporters
parenta09fa4a4117b00a23a6e826dbce9754f107faa7e (diff)
downloadpylint-git-8b9fc0af40addd94959a2676825f5605e8d6fecc.tar.gz
Don't call unicode() directly
--HG-- branch : python_6
Diffstat (limited to 'reporters')
-rw-r--r--reporters/text.py3
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"""