Skip to content

Commit 50ae188

Browse files
committed
tools: restore inspector_protocol typos
1 parent 3e7520b commit 50ae188

15 files changed

+27
-27
lines changed

tools/inspector_protocol/code_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def generate_lib_file(file_name, template_files):
681681
generate_lib_file(os.path.join(config.lib.output, to_file_name(config, "base_string_adapter.h")), base_string_adapter_h_templates)
682682
generate_lib_file(os.path.join(config.lib.output, to_file_name(config, "base_string_adapter.cc")), base_string_adapter_cc_templates)
683683

684-
# Make gyp / make generators happy, otherwise make rebuilds world.
684+
# Make gyp / make generatos happy, otherwise make rebuilds world.
685685
inputs_ts = max(map(os.path.getmtime, inputs))
686686
up_to_date = True
687687
for output_file in outputs.keys():

tools/inspector_protocol/encoding/encoding.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ class JsonParser {
17471747
}
17481748

17491749
static bool IsSpaceOrNewLine(Char c) {
1750-
// \v = vertical tab; \f = form feed page break.
1750+
// \v = vertial tab; \f = form feed page break.
17511751
return c == ' ' || c == '\n' || c == '\v' || c == '\f' || c == '\r' ||
17521752
c == '\t';
17531753
}

tools/inspector_protocol/encoding/encoding.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ class StreamingParserHandler {
181181
virtual void HandleNull() = 0;
182182

183183
// The parser may send one error even after other events have already
184-
// been received. Client code is responsible to then discard the
184+
// been received. Client code is reponsible to then discard the
185185
// already processed events.
186-
// |error| must be an error, as in, |error.is_ok()| can't be true.
186+
// |error| must be an eror, as in, |error.is_ok()| can't be true.
187187
virtual void HandleError(Status error) = 0;
188188
};
189189

tools/inspector_protocol/jinja2/bccache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This module implements the bytecode cache system Jinja is optionally
77
using. This is useful if you have very complex template situations and
8-
the compilation of all those templates slow down your application too
8+
the compiliation of all those templates slow down your application too
99
much.
1010
1111
Situations where this is useful are often forking web applications that

tools/inspector_protocol/jinja2/compiler.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def signature(self, node, frame, extra_kwargs=None):
410410
"""Writes a function call to the stream for the current node.
411411
A leading comma is added automatically. The extra keyword
412412
arguments may not include python keywords otherwise a syntax
413-
error could occur. The extra keyword arguments should be given
413+
error could occour. The extra keyword arguments should be given
414414
as python dict.
415415
"""
416416
# if any of the given keyword arguments is a python keyword
@@ -1044,13 +1044,13 @@ def visit_For(self, node, frame):
10441044
if node.test:
10451045
loop_filter_func = self.temporary_identifier()
10461046
test_frame.symbols.analyze_node(node, for_branch='test')
1047-
self.writeline('%s(filter):' % self.func(loop_filter_func), node.test)
1047+
self.writeline('%s(fiter):' % self.func(loop_filter_func), node.test)
10481048
self.indent()
10491049
self.enter_frame(test_frame)
10501050
self.writeline(self.environment.is_async and 'async for ' or 'for ')
10511051
self.visit(node.target, loop_frame)
10521052
self.write(' in ')
1053-
self.write(self.environment.is_async and 'auto_aiter(filter)' or 'filter')
1053+
self.write(self.environment.is_async and 'auto_aiter(fiter)' or 'fiter')
10541054
self.write(':')
10551055
self.indent()
10561056
self.writeline('if ', node.test)
@@ -1256,7 +1256,7 @@ def visit_Output(self, node, frame):
12561256
except nodes.Impossible:
12571257
body.append(child)
12581258
continue
1259-
# the frame can't be volatile here, because otherwise the
1259+
# the frame can't be volatile here, becaus otherwise the
12601260
# as_const() function would raise an Impossible exception
12611261
# at that point.
12621262
try:

tools/inspector_protocol/jinja2/debug.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def fake_exc_info(exc_info, filename, lineno):
239239
else:
240240
locals = {}
241241

242-
# assemble fake globals we need
242+
# assamble fake globals we need
243243
globals = {
244244
'__name__': filename,
245245
'__file__': filename,

tools/inspector_protocol/jinja2/environment.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class Environment(object):
240240
sandboxed = False
241241

242242
#: True if the environment is just an overlay
243-
overlaid = False
243+
overlayed = False
244244

245245
#: the environment this environment is linked to if it is an overlay
246246
linked_to = None
@@ -364,7 +364,7 @@ def overlay(self, block_start_string=missing, block_end_string=missing,
364364
bytecode_cache=missing):
365365
"""Create a new overlay environment that shares all the data with the
366366
current environment except for cache and the overridden attributes.
367-
Extensions cannot be removed for an overlaid environment. An overlaid
367+
Extensions cannot be removed for an overlayed environment. An overlayed
368368
environment automatically gets all the extensions of the environment it
369369
is linked to plus optional extra extensions.
370370
@@ -378,7 +378,7 @@ def overlay(self, block_start_string=missing, block_end_string=missing,
378378

379379
rv = object.__new__(self.__class__)
380380
rv.__dict__.update(self.__dict__)
381-
rv.overlaid = True
381+
rv.overlayed = True
382382
rv.linked_to = self
383383

384384
for key, value in iteritems(args):
@@ -1074,7 +1074,7 @@ def make_module(self, vars=None, shared=False, locals=None):
10741074

10751075
def make_module_async(self, vars=None, shared=False, locals=None):
10761076
"""As template module creation can invoke template code for
1077-
asynchronous executions this method must be used instead of the
1077+
asynchronous exections this method must be used instead of the
10781078
normal :meth:`make_module` one. Likewise the module attribute
10791079
becomes unavailable in async mode.
10801080
"""

tools/inspector_protocol/jinja2/ext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def babel_extract(fileobj, keywords, comment_tags, options):
545545
.. versionchanged:: 2.3
546546
Basic support for translation comments was added. If `comment_tags`
547547
is now set to a list of keywords for extraction, the extractor will
548-
try to find the best preceding comment that begins with one of the
548+
try to find the best preceeding comment that begins with one of the
549549
keywords. For best results, make sure to not have more than one
550550
gettext call in one line of code and the matching comment in the
551551
same line or the line before.

tools/inspector_protocol/jinja2/filters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def do_join(eval_ctx, value, d=u'', attribute=None):
400400
if attribute is not None:
401401
value = imap(make_attrgetter(eval_ctx.environment, attribute), value)
402402

403-
# no automatic escaping? joining is a lot easier then
403+
# no automatic escaping? joining is a lot eaiser then
404404
if not eval_ctx.autoescape:
405405
return text_type(d).join(imap(text_type, value))
406406

tools/inspector_protocol/jinja2/nodes.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def as_const(self, eval_ctx=None):
636636

637637
# we have to be careful here because we call filter_ below.
638638
# if this variable would be called filter, 2to3 would wrap the
639-
# call in a list because it is assuming we are talking about the
639+
# call in a list beause it is assuming we are talking about the
640640
# builtin filter function here which no longer returns a list in
641641
# python 3. because of that, do not rename filter_ to filter!
642642
filter_ = self.environment.filters.get(self.name)
@@ -803,7 +803,7 @@ class Div(BinExpr):
803803

804804

805805
class FloorDiv(BinExpr):
806-
"""Divides the left by the right node and truncates convert the
806+
"""Divides the left by the right node and truncates conver the
807807
result into an integer by truncating.
808808
"""
809809
operator = '//'
@@ -896,7 +896,7 @@ class InternalName(Expr):
896896
yourself but the parser provides a
897897
:meth:`~jinja2.parser.Parser.free_identifier` method that creates
898898
a new identifier for you. This identifier is not available from the
899-
template and is not treated specially by the compiler.
899+
template and is not threated specially by the compiler.
900900
"""
901901
fields = ('name',)
902902

tools/inspector_protocol/jinja2/runtime.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def __call__(self, *args, **kwargs):
515515
# check here.
516516
#
517517
# This is considered safe because an eval context is not a valid
518-
# argument to callables otherwise anyways. Worst case here is
518+
# argument to callables otherwise anwyays. Worst case here is
519519
# that if no eval context is passed we fall back to the compile
520520
# time autoescape flag.
521521
if args and isinstance(args[0], EvalContext):

tools/inspector_protocol/jinja2/sandbox.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#: unsafe method attributes. function attributes are unsafe for methods too
4141
UNSAFE_METHOD_ATTRIBUTES = set(['im_class', 'im_func', 'im_self'])
4242

43-
#: unsafe generator attributes.
43+
#: unsafe generator attirbutes.
4444
UNSAFE_GENERATOR_ATTRIBUTES = set(['gi_frame', 'gi_code'])
4545

4646
#: unsafe attributes on coroutines
@@ -299,7 +299,7 @@ class SandboxedEnvironment(Environment):
299299
def intercept_unop(self, operator):
300300
"""Called during template compilation with the name of a unary
301301
operator to check if it should be intercepted at runtime. If this
302-
method returns `True`, :meth:`call_unop` is executed for this unary
302+
method returns `True`, :meth:`call_unop` is excuted for this unary
303303
operator. The default implementation of :meth:`call_unop` will use
304304
the :attr:`unop_table` dictionary to perform the operator with the
305305
same logic as the builtin one.
@@ -439,7 +439,7 @@ def is_safe_attribute(self, obj, attr, value):
439439
return not modifies_known_mutable(obj, attr)
440440

441441

442-
# This really is not a public API apparently.
442+
# This really is not a public API apparenlty.
443443
try:
444444
from _string import formatter_field_name_split
445445
except ImportError:

tools/inspector_protocol/jinja2/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def __call__(self):
614614

615615
class Namespace(object):
616616
"""A namespace object that can hold arbitrary attributes. It may be
617-
initialized from a dictionary or with keyword arguments."""
617+
initialized from a dictionary or with keyword argments."""
618618

619619
def __init__(*args, **kwargs):
620620
self, args = args[0], args[1:]

tools/inspector_protocol/lib/encoding_cpp.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ class JsonParser {
17551755
}
17561756

17571757
static bool IsSpaceOrNewLine(Char c) {
1758-
// \v = vertical tab; \f = form feed page break.
1758+
// \v = vertial tab; \f = form feed page break.
17591759
return c == ' ' || c == '\n' || c == '\v' || c == '\f' || c == '\r' ||
17601760
c == '\t';
17611761
}

tools/inspector_protocol/lib/encoding_h.template

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ class StreamingParserHandler {
190190
virtual void HandleNull() = 0;
191191

192192
// The parser may send one error even after other events have already
193-
// been received. Client code is responsible to then discard the
193+
// been received. Client code is reponsible to then discard the
194194
// already processed events.
195-
// |error| must be an error, as in, |error.is_ok()| can't be true.
195+
// |error| must be an eror, as in, |error.is_ok()| can't be true.
196196
virtual void HandleError(Status error) = 0;
197197
};
198198

0 commit comments

Comments
 (0)