Mercurial > hg-stable
comparison tests/test-rebase-abort.t @ 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 | a01ecbcfaf84 |
children | a1d4ca0c8483 61f4d59e9a0b |
comparison
equal
deleted
inserted
replaced
27271:2a31433a59ba | 27272:69308357ecd1 |
---|