[PATCH 1 of 7 v2] import-checker: refactor source reading
Yuya Nishihara
yuya at tcha.org
Fri Apr 15 10:38:28 EDT 2016
On Wed, 13 Apr 2016 12:21:44 -0500, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1460414044 0
> # Mon Apr 11 22:34:04 2016 +0000
> # Node ID 20a703ce76f7cda378d2ce950b7daa971b508d74
> # Parent 02be5fc18c0c70c087a9d1ab5ffe5afce926f227
> import-checker: refactor source reading
Queued 1-5, thanks. Also, thanks for reviewing.
> +def sources(f, modname):
> + if f.endswith('.py'):
> + with open(f) as src:
> + yield src.read(), modname
Can you add warnings for unprocessed files, as a follow-up patch?
More information about the Mercurial-devel
mailing list