parent
972bc8650e
commit
c74bf4e46e
@ -1,11 +0,0 @@
|
||||
diff -up chromium-94.0.4606.71/remoting/codec/codec_test.cc.missing-header chromium-94.0.4606.71/remoting/codec/codec_test.cc
|
||||
--- chromium-94.0.4606.71/remoting/codec/codec_test.cc.missing-header 2021-10-07 18:01:11.846157616 +0000
|
||||
+++ chromium-94.0.4606.71/remoting/codec/codec_test.cc 2021-10-07 18:01:22.913662166 +0000
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
+#include <cmath>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
@ -1,37 +0,0 @@
|
||||
diff -up chromium-94.0.4606.81/buildtools/linux64/clang-format.clang-format-py3 chromium-94.0.4606.81/buildtools/linux64/clang-format
|
||||
--- chromium-94.0.4606.81/buildtools/linux64/clang-format.clang-format-py3 2021-10-08 11:26:16.411861005 -0400
|
||||
+++ chromium-94.0.4606.81/buildtools/linux64/clang-format 2021-10-08 11:32:16.005895508 -0400
|
||||
@@ -12,9 +12,9 @@ def main():
|
||||
args = sys.argv[1:]
|
||||
inputfiles = [a for a in args if not a.startswith('-')]
|
||||
|
||||
- contents = ''
|
||||
+ contents = b''
|
||||
if '-' in args or not inputfiles:
|
||||
- contents = sys.stdin.read()
|
||||
+ contents = sys.stdin.buffer.read()
|
||||
|
||||
# Tarball builds may or may not have depot_tools in $PATH. In the former case,
|
||||
# running 'clang-format' will call back into this script infinitely. Strip off
|
||||
@@ -37,17 +37,17 @@ def main():
|
||||
stdout, stderr = proc.communicate(input=contents)
|
||||
# Ignore if clang-format fails. Eg: it may be too old to support C++14.
|
||||
if proc.returncode == 0:
|
||||
- sys.stdout.write(stdout)
|
||||
- sys.stderr.write(stderr)
|
||||
+ sys.stdout.buffer.write(stdout)
|
||||
+ sys.stderr.buffer.write(stderr)
|
||||
return 0
|
||||
except OSError:
|
||||
# Ignore if clang-format is not installed.
|
||||
pass
|
||||
|
||||
# If any failure happens, continue with unformatted files.
|
||||
- sys.stdout.write(contents)
|
||||
+ sys.stdout.buffer.write(contents)
|
||||
for inputfile in inputfiles:
|
||||
- sys.stdout.write(open(inputfile).read())
|
||||
+ sys.stdout.buffer.write(open(inputfile).read())
|
||||
|
||||
return 0
|
||||
|
@ -1,138 +0,0 @@
|
||||
diff -up chromium-99.0.4844.84/third_party/jinja2/filters.py.soft_str chromium-99.0.4844.84/third_party/jinja2/filters.py
|
||||
--- chromium-99.0.4844.84/third_party/jinja2/filters.py.soft_str 2022-03-28 10:33:14.979405438 -0400
|
||||
+++ chromium-99.0.4844.84/third_party/jinja2/filters.py 2022-03-28 10:33:45.934597164 -0400
|
||||
@@ -10,7 +10,7 @@ from itertools import groupby
|
||||
|
||||
from markupsafe import escape
|
||||
from markupsafe import Markup
|
||||
-from markupsafe import soft_unicode
|
||||
+from markupsafe import soft_str
|
||||
|
||||
from ._compat import abc
|
||||
from ._compat import imap
|
||||
@@ -191,18 +191,18 @@ def do_replace(eval_ctx, s, old, new, co
|
||||
):
|
||||
s = escape(s)
|
||||
else:
|
||||
- s = soft_unicode(s)
|
||||
- return s.replace(soft_unicode(old), soft_unicode(new), count)
|
||||
+ s = soft_str(s)
|
||||
+ return s.replace(soft_str(old), soft_str(new), count)
|
||||
|
||||
|
||||
def do_upper(s):
|
||||
"""Convert a value to uppercase."""
|
||||
- return soft_unicode(s).upper()
|
||||
+ return soft_str(s).upper()
|
||||
|
||||
|
||||
def do_lower(s):
|
||||
"""Convert a value to lowercase."""
|
||||
- return soft_unicode(s).lower()
|
||||
+ return soft_str(s).lower()
|
||||
|
||||
|
||||
@evalcontextfilter
|
||||
@@ -245,7 +245,7 @@ def do_capitalize(s):
|
||||
"""Capitalize a value. The first character will be uppercase, all others
|
||||
lowercase.
|
||||
"""
|
||||
- return soft_unicode(s).capitalize()
|
||||
+ return soft_str(s).capitalize()
|
||||
|
||||
|
||||
def do_title(s):
|
||||
@@ -255,7 +255,7 @@ def do_title(s):
|
||||
return "".join(
|
||||
[
|
||||
item[0].upper() + item[1:].lower()
|
||||
- for item in _word_beginning_split_re.split(soft_unicode(s))
|
||||
+ for item in _word_beginning_split_re.split(soft_str(s))
|
||||
if item
|
||||
]
|
||||
)
|
||||
@@ -495,7 +495,7 @@ def do_join(eval_ctx, value, d=u"", attr
|
||||
return d.join(value)
|
||||
|
||||
# no html involved, to normal joining
|
||||
- return soft_unicode(d).join(imap(soft_unicode, value))
|
||||
+ return soft_str(d).join(imap(soft_str, value))
|
||||
|
||||
|
||||
def do_center(value, width=80):
|
||||
@@ -761,7 +761,7 @@ def do_wordwrap(
|
||||
|
||||
def do_wordcount(s):
|
||||
"""Count the words in that string."""
|
||||
- return len(_word_re.findall(soft_unicode(s)))
|
||||
+ return len(_word_re.findall(soft_str(s)))
|
||||
|
||||
|
||||
def do_int(value, default=0, base=10):
|
||||
@@ -820,12 +820,12 @@ def do_format(value, *args, **kwargs):
|
||||
raise FilterArgumentError(
|
||||
"can't handle positional and keyword arguments at the same time"
|
||||
)
|
||||
- return soft_unicode(value) % (kwargs or args)
|
||||
+ return soft_str(value) % (kwargs or args)
|
||||
|
||||
|
||||
def do_trim(value, chars=None):
|
||||
"""Strip leading and trailing characters, by default whitespace."""
|
||||
- return soft_unicode(value).strip(chars)
|
||||
+ return soft_str(value).strip(chars)
|
||||
|
||||
|
||||
def do_striptags(value):
|
||||
@@ -1365,7 +1365,7 @@ FILTERS = {
|
||||
"selectattr": do_selectattr,
|
||||
"slice": do_slice,
|
||||
"sort": do_sort,
|
||||
- "string": soft_unicode,
|
||||
+ "string": soft_str,
|
||||
"striptags": do_striptags,
|
||||
"sum": do_sum,
|
||||
"title": do_title,
|
||||
diff -up chromium-99.0.4844.84/third_party/jinja2/runtime.py.soft_str chromium-99.0.4844.84/third_party/jinja2/runtime.py
|
||||
--- chromium-99.0.4844.84/third_party/jinja2/runtime.py.soft_str 2022-03-28 10:36:17.301534689 -0400
|
||||
+++ chromium-99.0.4844.84/third_party/jinja2/runtime.py 2022-03-28 10:36:33.053632253 -0400
|
||||
@@ -6,7 +6,7 @@ from types import MethodType
|
||||
|
||||
from markupsafe import escape # noqa: F401
|
||||
from markupsafe import Markup
|
||||
-from markupsafe import soft_unicode
|
||||
+from markupsafe import soft_str
|
||||
|
||||
from ._compat import abc
|
||||
from ._compat import imap
|
||||
@@ -62,7 +62,7 @@ def identity(x):
|
||||
def markup_join(seq):
|
||||
"""Concatenation that escapes if necessary and converts to unicode."""
|
||||
buf = []
|
||||
- iterator = imap(soft_unicode, seq)
|
||||
+ iterator = imap(soft_str, seq)
|
||||
for arg in iterator:
|
||||
buf.append(arg)
|
||||
if hasattr(arg, "__html__"):
|
||||
diff -up chromium-99.0.4844.84/third_party/jinja2/utils.py.soft_str chromium-99.0.4844.84/third_party/jinja2/utils.py
|
||||
--- chromium-99.0.4844.84/third_party/jinja2/utils.py.soft_str 2022-03-28 10:34:29.063864294 -0400
|
||||
+++ chromium-99.0.4844.84/third_party/jinja2/utils.py 2022-03-28 10:35:31.555251349 -0400
|
||||
@@ -725,13 +725,13 @@ except SyntaxError:
|
||||
have_async_gen = False
|
||||
|
||||
|
||||
-def soft_unicode(s):
|
||||
- from markupsafe import soft_unicode
|
||||
+def soft_str(s):
|
||||
+ from markupsafe import soft_str
|
||||
|
||||
warnings.warn(
|
||||
- "'jinja2.utils.soft_unicode' will be removed in version 3.0."
|
||||
- " Use 'markupsafe.soft_unicode' instead.",
|
||||
+ "'jinja2.utils.soft_str' will be removed in version 3.0."
|
||||
+ " Use 'markupsafe.soft_str' instead.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
- return soft_unicode(s)
|
||||
+ return soft_str(s)
|
Loading…
Reference in new issue