[PATCH 1 of 2] templater: move templatefilters.func into the same place as the other funcs

Sean Farley sean.michael.farley at gmail.com
Tue May 21 15:42:33 CDT 2013


Wagner Bruna writes:

> Em 20-05-2013 18:45, Sean Farley escreveu:
>> # HG changeset patch
>> # User Sean Farley <sean.michael.farley at gmail.com>
>> # Date 1365638198 18000
>> #      Wed Apr 10 18:56:38 2013 -0500
>> # Node ID 4edf5b7dddd1a3ab5350590256f5145b54ea1e30
>> # Parent  0ec31231afad3fc171f882226aae50d4737559b5
>> templater: move templatefilters.func into the same place as the other funcs
>> 
>> diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py
>> --- a/mercurial/templatefilters.py
>> +++ b/mercurial/templatefilters.py
>> @@ -3,13 +3,12 @@
>>  # Copyright 2005-2008 Matt Mackall <mpm at selenic.com>
>>  #
>>  # This software may be used and distributed according to the terms of the
>>  # GNU General Public License version 2 or any later version.
>>  
>> -from i18n import _
>>  import cgi, re, os, time, urllib
>> -import encoding, node, util, error
>> +import encoding, node, util
>
> The module still needs those, for error reporting (which suggests it also
> needs a few (doc)tests).

Huh, really? Even if there is no use of the module in that file? I
couldn't find any file in the mercurial repo that imports error but
doesn't have some call to error.foo. I fully admit, though, that I am no
expert in python so I could be missing something obvious here.


More information about the Mercurial-devel mailing list