Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
rpmlint
filename-non-utf8-exception.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File filename-non-utf8-exception.diff of Package rpmlint
From: Some One <nobody@opensuse.org> Date: Thu, 9 Apr 2015 14:55:39 +0200 Subject: [PATCH] filename-non-utf8-exception.diff =================================================================== --- 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 @@ -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):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor