summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-02-06 13:11:08 -0800
committerAnas Nashif <anas.nashif@intel.com>2013-02-06 17:32:17 -0800
commit102c0e47340408c9494b880510865c8fe187041f (patch)
treebcf644f92866874f21ee5b3fbe65d5a3ea920136
parent35b92f89449c7e917fc27af5cad508211ca79ce1 (diff)
downloadrpmlint-102c0e47340408c9494b880510865c8fe187041f.tar.gz
rpmlint-102c0e47340408c9494b880510865c8fe187041f.tar.bz2
rpmlint-102c0e47340408c9494b880510865c8fe187041f.zip
filename-non-utf8-exception.diff
-rw-r--r--Filter.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Filter.py b/Filter.py
index 277a2ff..44a1f91 100644
--- a/Filter.py
+++ b/Filter.py
@@ -24,12 +24,8 @@ _diagnostic = list()
_badness_score = 0
printed_messages = { "I": 0, "W": 0, "E": 0 }
-if sys.stdout.isatty():
- def __print(s):
- print(s)
-else:
- def __print(s):
- print(s.encode(locale.getpreferredencoding(), "replace"))
+def __print(s):
+ print(s)
def printInfo(pkg, reason, *details):
_print("I", pkg, reason, details)