[PATCH 1 of 4 V3] hgweb: add dynamic search function selection, depending on the query
martin at geisler.net
Sun Sep 1 15:18:23 CDT 2013
Alexander Plavin <alexander at plav.in> writes:
> 01.09.2013, 08:45, "Kevin Bullock" <kbullock+mercurial at ringworld.org>:
>> On 28 Aug 2013, at 7:24 AM, Augie Fackler wrote:
>>> On Wed, Aug 28, 2013 at 5:37 AM, Alexander Plavin <alexander at plav.in> wrote:
>>>> I haven't noticed a place where such thing is used in Mercurial, could you please point at one of them (if there are any)?
>>> I guess there aren't. Hm. Kevin, do you have an opinion?
>> I always have an opinion; sometimes it's even warranted :P
>> A symbolic name would guard against typos in the string literal. I'm
>> in favor.
> Would it, really? Due to Python being interpreted, an exception would
> be raised only when the line of code executes, with both methods (a
> separate constant, or a string literal).
That is true, but Pyflakes can detect undefined variables most of the
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 835 bytes
Desc: not available
More information about the Mercurial-devel