Various typos.

This commit is contained in:
florentx 2010-07-07 02:07:11 +08:00 committed by Armin Ronacher
parent b004324dbb
commit 16e4d5a655
6 changed files with 7 additions and 8 deletions

View file

@ -31,7 +31,7 @@ from .globals import _request_ctx_stack, request
from .session import Session, _NullSession
from .module import _ModuleSetupState
from .templating import _DispatchingJinjaLoader, \
_default_template_ctx_processor
_default_template_ctx_processor
# a lock used for logger initialization
_logger_lock = Lock()
@ -426,8 +426,7 @@ class Flask(_PackageBoundObject):
if self.config['SERVER_NAME'] is not None:
domain = '.' + self.config['SERVER_NAME']
session.save_cookie(response, self.session_cookie_name,
expires=expires, httponly=True,
domain=domain)
expires=expires, httponly=True, domain=domain)
def register_module(self, module, **options):
"""Registers a module with this application. The keyword argument

View file

@ -11,7 +11,7 @@
from __future__ import absolute_import
from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG
from logging import getLogger, StreamHandler, Formatter, Logger, DEBUG
def create_logger(app):

View file

@ -15,7 +15,7 @@ from .helpers import _PackageBoundObject
def _register_module(module, static_path):
"""Internal helper function that returns a function for recording
that registers the `send_static_file` function for the module on
the application of necessary. It also registers the module on
the application if necessary. It also registers the module on
the application.
"""
def _register(state):

View file

@ -37,7 +37,7 @@ class _NullSession(Session):
def _fail(self, *args, **kwargs):
raise RuntimeError('the session is unavailable because no secret '
'key was set. Set the secret_key on the '
'application to something unique and secret')
'application to something unique and secret.')
__setitem__ = __delitem__ = clear = pop = popitem = \
update = setdefault = _fail
del _fail

View file

@ -48,7 +48,7 @@ class _DispatchingJinjaLoader(BaseLoader):
return loader.get_source(environment, name)
except TemplateNotFound:
pass
# raise the exception with the correct fileame here.
# raise the exception with the correct filename here.
# (the one that includes the prefix)
raise TemplateNotFound(template)