Bug 106195 - [GTK] Make Tools/gtk/generate-gtkdoc compatible with Python 3
Summary: [GTK] Make Tools/gtk/generate-gtkdoc compatible with Python 3
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-06 12:12 PST by Zan Dobersek
Modified: 2013-01-08 02:11 PST (History)
1 user (show)

See Also:


Attachments
Patch (5.57 KB, patch)
2013-01-06 12:21 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff
Patch (5.53 KB, patch)
2013-01-07 11:52 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2013-01-06 12:12:44 PST
[GTK] Make Tools/gtk/generate-gtkdoc compatible with Python 3
Comment 1 Zan Dobersek 2013-01-06 12:21:53 PST
Created attachment 181463 [details]
Patch
Comment 2 Philippe Normand 2013-01-07 08:29:09 PST
Comment on attachment 181463 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=181463&action=review

> Tools/gtk/gtkdoc.py:188
> +        stdout, stderr = map(lambda b: b.decode("utf-8"), process.communicate())

Wouldn't a list comprehension work here? I find those easier to deal with than map/lambda
Comment 3 Zan Dobersek 2013-01-07 11:52:16 PST
Created attachment 181538 [details]
Patch
Comment 4 Zan Dobersek 2013-01-07 11:52:44 PST
(In reply to comment #2)
> (From update of attachment 181463 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=181463&action=review
> 
> > Tools/gtk/gtkdoc.py:188
> > +        stdout, stderr = map(lambda b: b.decode("utf-8"), process.communicate())
> 
> Wouldn't a list comprehension work here? I find those easier to deal with than map/lambda

You're right, that approach is clearer.
Comment 5 Zan Dobersek 2013-01-08 02:11:37 PST
Comment on attachment 181538 [details]
Patch

Clearing flags on attachment: 181538

Committed r139048: <http://trac.webkit.org/changeset/139048>
Comment 6 Zan Dobersek 2013-01-08 02:11:45 PST
All reviewed patches have been landed.  Closing bug.