[PATCH] pycompat: make pycompat demandimport friendly

Yuya Nishihara yuya at tcha.org
Mon Jul 18 06:56:18 EDT 2016


On Sun, 17 Jul 2016 19:48:31 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1468765084 -19800
> #      Sun Jul 17 19:48:04 2016 +0530
> # Node ID f0f412e7b4eb6b40105f8c3681e355c4d7fb4139
> # Parent  1c22400db72de4bbeb992fde534c0abbe1367b03
> pycompat: make pycompat demandimport friendly

LGTM, queued, thanks.

> --- a/tests/test-check-pyflakes.t	Mon Jul 04 11:18:03 2016 -0700
> +++ b/tests/test-check-pyflakes.t	Sun Jul 17 19:48:04 2016 +0530
> @@ -7,6 +7,7 @@
>  (skipping binary file random-seed)
>  
>    $ hg locate 'set:**.py or grep("^#!.*python")' 2>/dev/null \
> +  > -X mercurial/pycompat.py \

I've moved command arguments before 2>/dev/null. Thought it isn't required,
I think it's preferable.


More information about the Mercurial-devel mailing list