From 317d300f6fe7e9fd56f7a84d29349f852f6d3e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 11 May 2017 12:48:13 +0300 Subject: Spelling fixes --- doc/build/changelog.rst | 2 +- doc/build/namespaces.rst | 2 +- mako/_ast_util.py | 2 +- mako/ext/extract.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/build/changelog.rst b/doc/build/changelog.rst index 7d110f3..6a929fd 100644 --- a/doc/build/changelog.rst +++ b/doc/build/changelog.rst @@ -1570,7 +1570,7 @@ Older Versions :tags: bugfixes :tickets: 69 - fixed codegen bug which occured when using <%page> + fixed codegen bug which occurred when using <%page> level caching, combined with an expression-based cache_key, combined with the usage of <%namespace import="*"/> - fixed lexer exceptions not cleaning up diff --git a/doc/build/namespaces.rst b/doc/build/namespaces.rst index 1453b80..afd323d 100644 --- a/doc/build/namespaces.rst +++ b/doc/build/namespaces.rst @@ -399,7 +399,7 @@ in the ``<%! %>`` of a template. Above, the file ``library.mako`` declares an attribute ``includes`` inside its global ``<%! %>`` section. -``index.mako`` includes this template using the ``<%namespace>`` tag. The base template ``base.mako``, which is the inherited parent of ``index.mako`` and is reponsible for layout, then locates this attribute and iterates through its contents to produce the includes that are specific to ``library.mako``. +``index.mako`` includes this template using the ``<%namespace>`` tag. The base template ``base.mako``, which is the inherited parent of ``index.mako`` and is responsible for layout, then locates this attribute and iterates through its contents to produce the includes that are specific to ``library.mako``. Version Two - Use a specific named def ----------------------------------------- diff --git a/mako/_ast_util.py b/mako/_ast_util.py index 8d19b0d..c410287 100644 --- a/mako/_ast_util.py +++ b/mako/_ast_util.py @@ -187,7 +187,7 @@ def iter_fields(node): def get_fields(node): - """Like `iter_fiels` but returns a dict.""" + """Like `iter_fields` but returns a dict.""" return dict(iter_fields(node)) diff --git a/mako/ext/extract.py b/mako/ext/extract.py index 8dd2e96..d777ea8 100644 --- a/mako/ext/extract.py +++ b/mako/ext/extract.py @@ -68,7 +68,7 @@ class MessageExtractor(object): else: continue - # Comments don't apply unless they immediately preceed the message + # Comments don't apply unless they immediately precede the message if translator_comments and \ translator_comments[-1][0] < node.lineno - 1: translator_comments = [] -- cgit v1.2.1