summaryrefslogtreecommitdiff
path: root/reporters
diff options
context:
space:
mode:
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"""