⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 292288 in webkit


Ignore:
Timestamp:
Apr 4, 2022, 8:40:24 AM (4 years ago)
Author:
Sam Sneddon
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.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r292287 r292288  
     12022-04-04  Sam Sneddon  <gsnedders@apple.com>
     2
     3        WPT export broken under Python 3
     4        https://bugs.webkit.org/show_bug.cgi?id=238735
     5
     6        Reviewed by Tim Nguyen.
     7
     8        * Scripts/webkitpy/w3c/wpt_github.py:
     9        (WPTGitHub.request): Ensure we have bytes, not str.
     10
    1112022-04-04  Adrian Perez de Castro  <aperez@igalia.com>
    212
  • trunk/Tools/Scripts/webkitpy/w3c/wpt_github.py

    r264949 r292288  
    8686
    8787        if body:
    88             body = json.dumps(body)
     88            body = json.dumps(body).encode('utf-8')
    8989
    9090        headers = {'Accept': 'application/vnd.github.v3+json'}
Note: See TracChangeset for help on using the changeset viewer.