Changeset 264981 in webkit
- Timestamp:
- Jul 28, 2020 7:00:49 AM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r264962 r264981 1 2020-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 1 12 2020-07-27 Wenson Hsieh <wenson_hsieh@apple.com> 2 13 -
trunk/Tools/Scripts/webkit-patch
r253222 r264981 40 40 41 41 from webkitpy.common.system.logutils import configure_logging 42 from webkitpy.common.unicode_compatibility import decode_if_necessary, unicode43 42 from webkitpy.tool.main import WebKitPatch 43 from webkitcorepy import string_utils, unicode 44 44 45 45 # If our str type isn't unicode, we need to standardize output format … … 54 54 class ForgivingUTF8Writer(codecs.lookup('utf-8')[-1]): 55 55 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)) 57 57 58 58 # By default, sys.stdout assumes ascii encoding. Since our messages can
Note: See TracChangeset
for help on using the changeset viewer.