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.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Tools/ChangeLog b/Tools/ChangeLog
index f7b4512..431be3a 100644
--- a/Tools/ChangeLog
+++ b/Tools/ChangeLog
@@ -1,3 +1,13 @@
+2020-01-17 Jonathan Bedard <jbedard@apple.com>
+
+ 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.
+
2020-01-17 Brady Eidson <beidson@apple.com>
TestWebKitAPI.AsyncFunction.Promise times out on slower machines in debug builds.
diff --git a/Tools/Scripts/webkitpy/common/unicode_compatibility.py b/Tools/Scripts/webkitpy/common/unicode_compatibility.py
index d57a303..6688c48 100644
--- a/Tools/Scripts/webkitpy/common/unicode_compatibility.py
+++ b/Tools/Scripts/webkitpy/common/unicode_compatibility.py
@@ -58,6 +58,8 @@
def decode_for(value, target_type):
+ if value is None:
+ return None
if type(value) == target_type:
return value
if target_type == unicode: