MCPcopy Create free account
hub / github.com/nodejs/node / _environment_config_check

Function _environment_config_check

deps/v8/third_party/jinja2/environment.py:124–139  ·  view source on GitHub ↗

Perform a sanity check on the environment.

(environment: "Environment")

Source from the content-addressed store, hash-verified

122
123
124def _environment_config_check(environment: "Environment") -> "Environment":
125 """Perform a sanity check on the environment."""
126 assert issubclass(
127 environment.undefined, Undefined
128 ), "'undefined' must be a subclass of 'jinja2.Undefined'."
129 assert (
130 environment.block_start_string
131 != environment.variable_start_string
132 != environment.comment_start_string
133 ), "block, variable and comment start strings must be different."
134 assert environment.newline_sequence in {
135 "\r",
136 "\r\n",
137 "\n",
138 }, "'newline_sequence' must be one of '\\n', '\\r\\n', or '\\r'."
139 return environment
140
141
142class Environment:

Callers 2

__init__Method · 0.85
overlayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected