Bug 204838 - Python 3: Add support in webkitpy.tool
Summary: Python 3: Add support in webkitpy.tool
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-12-03 21:58 PST by Jonathan Bedard
Modified: 2019-12-06 16:11 PST (History)
10 users (show)

See Also:


Attachments
Patch (56.52 KB, patch)
2019-12-03 22:29 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (4.81 KB, patch)
2019-12-05 09:00 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (5.29 KB, patch)
2019-12-05 09:02 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (5.88 KB, patch)
2019-12-06 13:57 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2019-12-03 21:58:18 PST
This supports running webkit-patch with Python 3.
Comment 1 Jonathan Bedard 2019-12-03 22:29:26 PST
Created attachment 384788 [details]
Patch
Comment 2 WebKit Commit Bot 2019-12-04 16:10:49 PST
Comment on attachment 384788 [details]
Patch

Clearing flags on attachment: 384788

Committed r253128: <https://trac.webkit.org/changeset/253128>
Comment 3 WebKit Commit Bot 2019-12-04 16:10:51 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2019-12-04 16:11:24 PST
<rdar://problem/57645975>
Comment 5 Jonathan Bedard 2019-12-05 09:00:35 PST
Reopening to attach new patch.
Comment 6 Jonathan Bedard 2019-12-05 09:00:36 PST
Created attachment 384910 [details]
Patch
Comment 7 Jonathan Bedard 2019-12-05 09:02:37 PST
Created attachment 384911 [details]
Patch
Comment 8 Jonathan Bedard 2019-12-05 09:04:19 PST
(In reply to Jonathan Bedard from comment #7)
> Created attachment 384911 [details]
> Patch

Tried uploading a patch with Python 3, hit a few bumps. This is what I needed for webkit-patch upload.
Comment 9 Stephanie Lewis 2019-12-05 15:24:53 PST
Comment on attachment 384911 [details]
Patch

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

> Tools/Scripts/webkit-patch:45
> +# If our str type isn't unicode, we need to standardize output format

why remove all the comments?
Comment 10 Jonathan Bedard 2019-12-05 15:36:54 PST
(In reply to Stephanie Lewis from comment #9)
> Comment on attachment 384911 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=384911&action=review
> 
> > Tools/Scripts/webkit-patch:45
> > +# If our str type isn't unicode, we need to standardize output format
> 
> why remove all the comments?

I can put them back, but they weren't super helpful and not applicable to Python 3. We're likely going to be removing them once we are only Python 3 anyways.
Comment 11 Stephanie Lewis 2019-12-06 13:46:07 PST
Comment on attachment 384911 [details]
Patch

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

>>> Tools/Scripts/webkit-patch:45
>>> +# If our str type isn't unicode, we need to standardize output format
>> 
>> why remove all the comments?
> 
> I can put them back, but they weren't super helpful and not applicable to Python 3. We're likely going to be removing them once we are only Python 3 anyways.

I think Saying why 2.7 needs a forgiving utf8 writer is important to explain why this class exists. And the bug number this code is solving  is useful too
Comment 12 Jonathan Bedard 2019-12-06 13:57:30 PST
Created attachment 385040 [details]
Patch
Comment 13 Jonathan Bedard 2019-12-06 13:58:20 PST
(In reply to Stephanie Lewis from comment #11)
> Comment on attachment 384911 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=384911&action=review
> 
> >>> Tools/Scripts/webkit-patch:45
> >>> +# If our str type isn't unicode, we need to standardize output format
> >> 
> >> why remove all the comments?
> > 
> > I can put them back, but they weren't super helpful and not applicable to Python 3. We're likely going to be removing them once we are only Python 3 anyways.
> 
> I think Saying why 2.7 needs a forgiving utf8 writer is important to explain
> why this class exists. And the bug number this code is solving  is useful too

Ok, added back in the comments.
Comment 14 WebKit Commit Bot 2019-12-06 15:00:28 PST
Comment on attachment 385040 [details]
Patch

Clearing flags on attachment: 385040

Committed r253222: <https://trac.webkit.org/changeset/253222>
Comment 15 WebKit Commit Bot 2019-12-06 15:00:30 PST
All reviewed patches have been landed.  Closing bug.
Comment 16 Jonathan Bedard 2019-12-06 16:11:49 PST
Committed r253230: <https://trac.webkit.org/changeset/253230>