Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Master:Temp
obs-service-tar_scm
fix-decoding-non-ascii.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-decoding-non-ascii.diff of Package obs-service-tar_scm
diff --git a/TarSCM/cli.py b/TarSCM/cli.py index 308e17a..2026f55 100644 --- a/TarSCM/cli.py +++ b/TarSCM/cli.py @@ -28,13 +28,13 @@ def check_locale(loc): stderr=subprocess.STDOUT).communicate() aloc = dict() - for tloc in aloc_tmp.decode().split('\n'): + for tloc in aloc_tmp.split(b'\n'): aloc[tloc] = 1 for tloc in loc: logging.debug("Checking .... %s", tloc) try: - if aloc[tloc]: + if aloc[tloc.encode()]: return tloc except KeyError: pass
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