Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 230633 Details for
Bug 317775
sys-apps/portage-2.1.8.3: UnicodeEncodeError in _emerge.depgraph.depgraph.display()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix the UnicodeEncodeError
display-unicode.patch (text/plain), 1.70 KB, created by
Zac Medico
on 2010-05-06 19:47:41 UTC
(
hide
)
Description:
fix the UnicodeEncodeError
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2010-05-06 19:47:41 UTC
Size:
1.70 KB
patch
obsolete
>From 219934ec31061c6709d0ab8baff3e4a33d356c40 Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Thu, 6 May 2010 12:40:56 -0700 >Subject: [PATCH] Bug #317775 - In depgraph.display() use writemsg_stdout() to avoid > UnicodeEncodeError. > >--- > pym/_emerge/depgraph.py | 11 ++++------- > 1 files changed, 4 insertions(+), 7 deletions(-) > >diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py >index 79fa508..4978c99 100644 >--- a/pym/_emerge/depgraph.py >+++ b/pym/_emerge/depgraph.py >@@ -4682,12 +4682,11 @@ class depgraph(object): > p.append(colorize("WARN", "*** Portage will stop merging at this point and reload itself,")) > p.append(colorize("WARN", " then resume the merge.")) > >- out = sys.stdout > show_repos = repoadd_set and repoadd_set != set(["0"]) > > for x in p: > if isinstance(x, basestring): >- out.write("%s\n" % (x,)) >+ writemsg_stdout("%s\n" % (x,), noiselevel=-1) > continue > > myprint, verboseadd, repoadd = x >@@ -4698,14 +4697,13 @@ class depgraph(object): > if show_repos and repoadd: > myprint += " " + teal("[%s]" % repoadd) > >- out.write("%s\n" % (myprint,)) >+ writemsg_stdout("%s\n" % (myprint,), noiselevel=-1) > > for x in blockers: >- print(x) >+ writemsg_stdout("%s\n" % (x,), noiselevel=-1) > > if verbosity == 3: >- print() >- print(counters) >+ writemsg_stdout('\n%s' % (counters,), noiselevel=-1) > if show_repos: > # In python-2.x, str() can trigger a UnicodeEncodeError here, > # so call __str__() directly. >@@ -4717,7 +4715,6 @@ class depgraph(object): > writemsg_stdout(bold('*'+revision) + '\n' + text, > noiselevel=-1) > >- sys.stdout.flush() > return os.EX_OK > > def _tree_display(self, mylist): >-- >1.7.0.4 >
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 317775
: 230633