Changeset 264981 in webkit


Ignore:
Timestamp:
Jul 28, 2020 7:00:49 AM (4 years ago)
Author:
Jonathan Bedard
Message:

[webkitcorepy] Add string_utils (Part 3)
https://bugs.webkit.org/show_bug.cgi?id=214405

Reviewed by Aakash Jain.

  • Scripts/webkit-patch:

(ForgivingUTF8Writer.write): Replace unicode_compatibility with string_utils.

  • Scripts/webkitpy/common/unicode_compatibility.py: Removed.
Location:
trunk/Tools
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r264962 r264981  
     12020-07-28  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [webkitcorepy] Add string_utils (Part 3)
     4        https://bugs.webkit.org/show_bug.cgi?id=214405
     5
     6        Reviewed by Aakash Jain.
     7
     8        * Scripts/webkit-patch:
     9        (ForgivingUTF8Writer.write): Replace unicode_compatibility with string_utils.
     10        * Scripts/webkitpy/common/unicode_compatibility.py: Removed.
     11
    1122020-07-27  Wenson Hsieh  <wenson_hsieh@apple.com>
    213
  • trunk/Tools/Scripts/webkit-patch

    r253222 r264981  
    4040
    4141from webkitpy.common.system.logutils import configure_logging
    42 from webkitpy.common.unicode_compatibility import decode_if_necessary, unicode
    4342from webkitpy.tool.main import WebKitPatch
     43from webkitcorepy import string_utils, unicode
    4444
    4545# If our str type isn't unicode, we need to standardize output format
     
    5454    class ForgivingUTF8Writer(codecs.lookup('utf-8')[-1]):
    5555        def write(self, value):
    56             return codecs.StreamWriter.write(self, decode_if_necessary(value))
     56            return codecs.StreamWriter.write(self, string_utils.decode(value, target_type=str))
    5757
    5858    # By default, sys.stdout assumes ascii encoding.  Since our messages can
Note: See TracChangeset for help on using the changeset viewer.