summaryrefslogtreecommitdiff
path: root/pylint/reporters/ureports/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/reporters/ureports/__init__.py')
-rw-r--r--pylint/reporters/ureports/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pylint/reporters/ureports/__init__.py b/pylint/reporters/ureports/__init__.py
index 8a0a036..02322db 100644
--- a/pylint/reporters/ureports/__init__.py
+++ b/pylint/reporters/ureports/__init__.py
@@ -59,10 +59,7 @@ class BaseWriter(object):
def write(self, string):
"""write a string in the output buffer"""
- try:
- self.out.write(string)
- except UnicodeEncodeError:
- self.out.write(string.encode(self.encoding))
+ self.out.write(string)
def begin_format(self):
"""begin to format a layout"""