forked from pool/rpmlint
10a26d790a
Accepted submit request 67998 from user coolo OBS-URL: https://build.opensuse.org/request/show/67998 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=101
21 lines
516 B
Diff
21 lines
516 B
Diff
Index: Filter.py
|
|
===================================================================
|
|
--- Filter.py.orig
|
|
+++ Filter.py
|
|
@@ -22,13 +22,8 @@ _diagnostic = list()
|
|
_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)
|