Patchwork [2,of,2] templater: fix get English

login
register
mail settings
Submitter timeless@mozdev.org
Date Sept. 8, 2015, 5:54 p.m.
Message ID <b13c52c93cbb6a035933.1441734845@waste.org>
Download mbox | patch
Permalink /patch/10423/
State Accepted
Headers show

Comments

timeless@mozdev.org - Sept. 8, 2015, 5:54 p.m.
# HG changeset patch
# User timeless@mozdev.org
# Date 1440971455 14400
#      Sun Aug 30 17:50:55 2015 -0400
# Node ID b13c52c93cbb6a035933c5b22826797488bf29db
# Parent  3f589cd796db27031c9f10068f758ddacd18c524
templater: fix get English
Augie Fackler - Sept. 9, 2015, 2:47 p.m.
On Tue, Sep 08, 2015 at 12:54:05PM -0500, timeless@mozdev.org wrote:
> # HG changeset patch
> # User timeless@mozdev.org
> # Date 1440971455 14400
> #      Sun Aug 30 17:50:55 2015 -0400
> # Node ID b13c52c93cbb6a035933c5b22826797488bf29db
> # Parent  3f589cd796db27031c9f10068f758ddacd18c524
> templater: fix get English

queued, thanks

>
> diff --git a/mercurial/templater.py b/mercurial/templater.py
> --- a/mercurial/templater.py
> +++ b/mercurial/templater.py
> @@ -427,7 +427,7 @@
>  def get(context, mapping, args):
>      """:get(dict, key): Get an attribute/key from an object. Some keywords
>      are complex types. This function allows you to obtain the value of an
> -    attribute on these type."""
> +    attribute on these types."""
>      if len(args) != 2:
>          # i18n: "get" is a keyword
>          raise error.ParseError(_("get() expects two arguments"))
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel

Patch

diff --git a/mercurial/templater.py b/mercurial/templater.py
--- a/mercurial/templater.py
+++ b/mercurial/templater.py
@@ -427,7 +427,7 @@ 
 def get(context, mapping, args):
     """:get(dict, key): Get an attribute/key from an object. Some keywords
     are complex types. This function allows you to obtain the value of an
-    attribute on these type."""
+    attribute on these types."""
     if len(args) != 2:
         # i18n: "get" is a keyword
         raise error.ParseError(_("get() expects two arguments"))