Title: [292288] trunk/Tools
Revision
292288
Author
[email protected]
Date
2022-04-04 08:40:24 -0700 (Mon, 04 Apr 2022)

Log Message

WPT export broken under Python 3
https://bugs.webkit.org/show_bug.cgi?id=238735

Reviewed by Tim Nguyen.

* Scripts/webkitpy/w3c/wpt_github.py:
(WPTGitHub.request): Ensure we have bytes, not str.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (292287 => 292288)


--- trunk/Tools/ChangeLog	2022-04-04 11:19:56 UTC (rev 292287)
+++ trunk/Tools/ChangeLog	2022-04-04 15:40:24 UTC (rev 292288)
@@ -1,3 +1,13 @@
+2022-04-04  Sam Sneddon  <[email protected]>
+
+        WPT export broken under Python 3
+        https://bugs.webkit.org/show_bug.cgi?id=238735
+
+        Reviewed by Tim Nguyen.
+
+        * Scripts/webkitpy/w3c/wpt_github.py:
+        (WPTGitHub.request): Ensure we have bytes, not str.
+
 2022-04-04  Adrian Perez de Castro  <[email protected]>
 
         [WPE][GTK] REGRESSION(r292263): Cannot make release tarballs

Modified: trunk/Tools/Scripts/webkitpy/w3c/wpt_github.py (292287 => 292288)


--- trunk/Tools/Scripts/webkitpy/w3c/wpt_github.py	2022-04-04 11:19:56 UTC (rev 292287)
+++ trunk/Tools/Scripts/webkitpy/w3c/wpt_github.py	2022-04-04 15:40:24 UTC (rev 292288)
@@ -85,7 +85,7 @@
         assert path.startswith('/')
 
         if body:
-            body = json.dumps(body)
+            body = json.dumps(body).encode('utf-8')
 
         headers = {'Accept': 'application/vnd.github.v3+json'}
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to