2011-04-21 12:12:02 +02:00
|
|
|
Index: Filter.py
|
|
|
|
===================================================================
|
|
|
|
--- Filter.py.orig
|
2010-04-06 22:38:58 +02:00
|
|
|
+++ Filter.py
|
2011-04-21 12:12:02 +02:00
|
|
|
@@ -22,13 +22,8 @@ _diagnostic = list()
|
2010-04-06 22:38:58 +02:00
|
|
|
_badness_score = 0
|
|
|
|
printed_messages = { "I": 0, "W": 0, "E": 0 }
|
|
|
|
|
|
|
|
-if sys.stdout.isatty():
|
|
|
|
- def __print(s):
|
|
|
|
- print(s)
|
|
|
|
-else:
|
|
|
|
- import locale
|
|
|
|
- def __print(s):
|
|
|
|
- print(s.encode(locale.getpreferredencoding(), "replace"))
|
|
|
|
+def __print(s):
|
|
|
|
+ print(s)
|
|
|
|
|
|
|
|
def printInfo(pkg, reason, *details):
|
|
|
|
_print("I", pkg, reason, details)
|