SHA256
1
0
forked from pool/rpmlint
rpmlint/filename-non-utf8-exception.diff
OBS User autobuild 7a7cb5dedf Accepting request 37121 from Base:System
Copy from Base:System/rpmlint based on submit request 37121 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/37121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=57
2010-04-06 20:38:58 +00:00

19 lines
405 B
Diff

--- Filter.py
+++ Filter.py
@@ -22,13 +22,8 @@
_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)