2015-04-10 16:35:46 +02:00
|
|
|
From: Some One <nobody@opensuse.org>
|
|
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
|
|
Subject: [PATCH] filename-non-utf8-exception.diff
|
|
|
|
|
2013-06-28 15:29:34 +02:00
|
|
|
===================================================================
|
2015-04-10 16:35:46 +02:00
|
|
|
---
|
|
|
|
Filter.py | 10 ++--------
|
|
|
|
1 file changed, 2 insertions(+), 8 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/Filter.py b/Filter.py
|
|
|
|
index 40fbf79..37ba038 100644
|
|
|
|
--- a/Filter.py
|
|
|
|
+++ b/Filter.py
|
2013-06-28 15:29:34 +02:00
|
|
|
@@ -23,14 +23,8 @@ _diagnostic = list()
|
2010-04-06 22:38:58 +02:00
|
|
|
_badness_score = 0
|
2015-04-10 16:35:46 +02:00
|
|
|
printed_messages = {"I": 0, "W": 0, "E": 0}
|
2010-04-06 22:38:58 +02:00
|
|
|
|
|
|
|
-if sys.stdout.isatty():
|
|
|
|
- def __print(s):
|
|
|
|
- print(s)
|
|
|
|
-else:
|
|
|
|
- def __print(s):
|
2013-06-28 15:29:34 +02:00
|
|
|
- if isinstance(s, unicode):
|
|
|
|
- s = s.encode(locale.getpreferredencoding(), "replace")
|
|
|
|
- print(s)
|
2010-04-06 22:38:58 +02:00
|
|
|
+def __print(s):
|
|
|
|
+ print(s)
|
|
|
|
|
2015-04-10 16:35:46 +02:00
|
|
|
|
2010-04-06 22:38:58 +02:00
|
|
|
def printInfo(pkg, reason, *details):
|