Changeset 254762 in webkit


Ignore:
Timestamp:
Jan 17, 2020 1:06:55 PM (4 years ago)
Author:
Jonathan Bedard
Message:

Python 3: Add support to run-webkit-tests (Follow-up fix)
https://bugs.webkit.org/show_bug.cgi?id=205291

Unreviewed follow-up fix.

  • Scripts/webkitpy/common/unicode_compatibility.py:

(decode_for): Handle case where provided value is None.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r254756 r254762  
     12020-01-17  Jonathan Bedard  <jbedard@apple.com>
     2
     3        Python 3: Add support to run-webkit-tests (Follow-up fix)
     4        https://bugs.webkit.org/show_bug.cgi?id=205291
     5
     6        Unreviewed follow-up fix.
     7
     8        * Scripts/webkitpy/common/unicode_compatibility.py:
     9        (decode_for): Handle case where provided value is None.
     10
    1112020-01-17  Brady Eidson  <beidson@apple.com>
    212
  • trunk/Tools/Scripts/webkitpy/common/unicode_compatibility.py

    r251383 r254762  
    5959
    6060def decode_for(value, target_type):
     61    if value is None:
     62        return None
    6163    if type(value) == target_type:
    6264        return value
Note: See TracChangeset for help on using the changeset viewer.