Skip to content

Commit 77753e9

Browse files
committed
Merge pull request pallets#746 from ThomasWaldmann/sprint-branch
fix typos
2 parents 4baeac0 + 13cc699 commit 77753e9

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

flask/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def encode_filename(filename):
9191

9292
def with_metaclass(meta, *bases):
9393
# This requires a bit of explanation: the basic idea is to make a
94-
# dummy metaclass for one level of class instanciation that replaces
94+
# dummy metaclass for one level of class instantiation that replaces
9595
# itself with the actual metaclass. Because of internal type checks
9696
# we also need to make sure that we downgrade the custom metaclass
9797
# for one level to something closer to type (that's why __call__ and

flask/app.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _set_request_globals_class(self, value):
177177

178178
#: The debug flag. Set this to `True` to enable debugging of the
179179
#: application. In debug mode the debugger will kick in when an unhandled
180-
#: exception ocurrs and the integrated server will automatically reload
180+
#: exception occurs and the integrated server will automatically reload
181181
#: the application if changes in the code are detected.
182182
#:
183183
#: This attribute can also be configured from the config with the `DEBUG`
@@ -522,7 +522,7 @@ def name(self):
522522
"""The name of the application. This is usually the import name
523523
with the difference that it's guessed from the run file if the
524524
import name is main. This name is used as a display name when
525-
Flask needs the name of the application. It can be set and overriden
525+
Flask needs the name of the application. It can be set and overridden
526526
to change the value.
527527
528528
.. versionadded:: 0.8
@@ -697,7 +697,7 @@ def update_template_context(self, context):
697697
This injects request, session, config and g into the template
698698
context as well as everything template context processors want
699699
to inject. Note that the as of Flask 0.6, the original values
700-
in the context will not be overriden if a context processor
700+
in the context will not be overridden if a context processor
701701
decides to return a value with the same key.
702702
703703
:param context: the context as a dictionary that is updated in place
@@ -1045,7 +1045,7 @@ def page_not_found(error):
10451045
app.error_handler_spec[None][404] = page_not_found
10461046
10471047
Setting error handlers via assignments to :attr:`error_handler_spec`
1048-
however is discouraged as it requires fidling with nested dictionaries
1048+
however is discouraged as it requires fiddling with nested dictionaries
10491049
and the special case for arbitrary exception types.
10501050
10511051
The first `None` refers to the active blueprint. If the error
@@ -1550,7 +1550,7 @@ def make_response(self, rv):
15501550
# When we create a response object directly, we let the constructor
15511551
# set the headers and status. We do this because there can be
15521552
# some extra logic involved when creating these objects with
1553-
# specific values (like defualt content type selection).
1553+
# specific values (like default content type selection).
15541554
if isinstance(rv, string_types):
15551555
rv = self.response_class(rv, headers=headers, status=status)
15561556
headers = status = None

flask/ctx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def match_request(self):
286286

287287
def push(self):
288288
"""Binds the request context to the current context."""
289-
# If an exception ocurrs in debug mode or if context preservation is
289+
# If an exception occurs in debug mode or if context preservation is
290290
# activated under exception situations exactly one context stays
291291
# on the stack. The rationale is that you want to access that
292292
# information under debug situations. However if someone forgets to

flask/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def get_template_attribute(template_name, attribute):
330330
.. versionadded:: 0.2
331331
332332
:param template_name: the name of the template
333-
:param attribute: the name of the variable of macro to acccess
333+
:param attribute: the name of the variable of macro to access
334334
"""
335335
return getattr(current_app.jinja_env.get_template(template_name).module,
336336
attribute)

flask/testsuite/blueprints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_context_processors(self):
105105
app = flask.Flask(__name__)
106106
admin = flask.Module(__name__, 'admin', url_prefix='/admin')
107107
@app.context_processor
108-
def inject_all_regualr():
108+
def inject_all_regular():
109109
return {'a': 1}
110110
@admin.context_processor
111111
def inject_admin():
@@ -534,7 +534,7 @@ def foo_foo_foo():
534534

535535
c = app.test_client()
536536
self.assertEqual(c.get('/py/foo').data, b'bp.foo')
537-
# The rule's din't actually made it through
537+
# The rule's didn't actually made it through
538538
rv = c.get('/py/bar')
539539
assert rv.status_code == 404
540540
rv = c.get('/py/bar/123')

0 commit comments

Comments
 (0)