Mercurial > hg-stable
comparison tests/test-wireproto.py @ 27272:69308357ecd1
import-checker: allow absolute imports of sub modules from local packages
Before this patch, import-checker.py didn't know if a name in ImportFrom
statement are module or not. Therefore, it complained the following example
did "direct symbol import from mercurial".
# hgext/foo.py
from mercurial import hg
This patch reuses the dict of local modules to filter out sub-module names.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 06 Dec 2015 14:18:19 +0900 |
parents | cbbdd085c991 |
children | 5defcb7d6e5f |
comparison
equal
deleted
inserted
replaced
27271:2a31433a59ba | 27272:69308357ecd1 |
---|