--- qtwebkit-tp5/Source/WebCore/platform/network/create-http-header-name-table.orig 2017-02-07 23:28:00.520278300 +0300 +++ qtwebkit-tp5/Source/WebCore/platform/network/create-http-header-name-table 2017-02-07 23:29:15.412561900 +0300 @@ -54,7 +55,7 @@ http_header_names.sort() -gperf_file = open('HTTPHeaderNames.gperf', 'w') +gperf_file = open('HTTPHeaderNames.gperf', 'wb') gperf_file.write(''' %{ /* --- qtwebkit-tp5/Source/WebCore/css/makeSelectorPseudoClassAndCompatibilityElementMap.py.orig 2017-02-08 00:23:27.256556700 +0300 +++ qtwebkit-tp5/Source/WebCore/css/makeSelectorPseudoClassAndCompatibilityElementMap.py 2017-02-08 00:23:33.040887600 +0300 @@ -57,7 +57,7 @@ def expand_ifdef_condition(condition): return condition.replace('(', '_').replace(')', '') -output_file = open('SelectorPseudoClassAndCompatibilityElementMap.gperf', 'w') +output_file = open('SelectorPseudoClassAndCompatibilityElementMap.gperf', 'wb') output_file.write(""" %{ --- qtwebkit-tp5/Source/WebCore/css/makeSelectorPseudoElementsMap.py.orig 2017-02-08 00:23:46.797674400 +0300 +++ qtwebkit-tp5/Source/WebCore/css/makeSelectorPseudoElementsMap.py 2017-02-08 00:23:51.732956700 +0300 @@ -57,7 +57,7 @@ def expand_ifdef_condition(condition): return condition.replace('(', '_').replace(')', '') -output_file = open('SelectorPseudoElementTypeMap.gperf', 'w') +output_file = open('SelectorPseudoElementTypeMap.gperf', 'wb') output_file.write(""" %{