diff options
author | Simu Toni <simutoni@gmail.com> | 2015-03-28 18:28:08 +0200 |
---|---|---|
committer | Simu Toni <simutoni@gmail.com> | 2015-03-28 18:28:08 +0200 |
commit | bc4d7d822238e2acf738cb9437ccae11034e5e91 (patch) | |
tree | e2372649b6fc11c6232ce08d3f679571a0997173 /pylint/reporters | |
parent | 8828a5bb41eb9198a3d80983d655d445ac917b14 (diff) | |
download | pylint-bc4d7d822238e2acf738cb9437ccae11034e5e91.tar.gz |
issue-422 solved some pylint warnings when running pylint on pylint code base
Diffstat (limited to 'pylint/reporters')
-rw-r--r-- | pylint/reporters/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/reporters/__init__.py b/pylint/reporters/__init__.py index ea3281f..db96cf6 100644 --- a/pylint/reporters/__init__.py +++ b/pylint/reporters/__init__.py @@ -17,6 +17,7 @@ from __future__ import print_function import sys import locale import os +import six from pylint import utils @@ -78,7 +79,7 @@ class BaseReporter(object): return def encode(string): - if not isinstance(string, unicode): + if not isinstance(string, six.text_type): return string encoding = (getattr(self.out, 'encoding', None) or locale.getdefaultlocale()[1] or |