Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 464458 Details for
Bug 610016
app-portage/mirrorselect python3 incompatibility - TypeError: sequence item 1: expected str instance, bytes found
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
another attempt
mirrorselect.fix.patch (text/plain), 489 bytes, created by
zakalwe
on 2017-02-20 19:42:22 UTC
(
hide
)
Description:
another attempt
Filename:
MIME Type:
Creator:
zakalwe
Created:
2017-02-20 19:42:22 UTC
Size:
489 bytes
patch
obsolete
>--- mirrorselect/main.py 2017-02-20 19:22:07.000000000 +0000 >+++ mirrorselect/main.p 2017-02-20 19:21:40.332951323 +0000 >@@ -107,9 +107,10 @@ > var = 'SYNC' > else: > var = 'GENTOO_MIRRORS' >- >- if hasattr(hosts[0], 'decode'): >- hosts = [x.decode('utf-8') for x in hosts] >+ >+ for i in range(0, len(hosts)): >+ if hasattr(hosts[i], 'decode'): >+ hosts[i] = hosts[i].decode('utf-8') > > if var == "sync-uri" and out: > mirror_string = '%s = %s' % (var, ' '.join(hosts))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 610016
:
464362
| 464458