Dirk Mueller
15bad7fc73
* New Homepage * Plenty of new checks - add compressed-backup-regex.diff - remove python3_magic_number_fix.diff OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=189
22 lines
552 B
Diff
22 lines
552 B
Diff
Index: Filter.py
|
|
===================================================================
|
|
--- Filter.py.orig
|
|
+++ Filter.py
|
|
@@ -23,14 +23,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):
|
|
- if isinstance(s, unicode):
|
|
- s = s.encode(locale.getpreferredencoding(), "replace")
|
|
- print(s)
|
|
+def __print(s):
|
|
+ print(s)
|
|
|
|
def printInfo(pkg, reason, *details):
|
|
_print("I", pkg, reason, details)
|