Exclude relative imports.

ex) from .foo import bar
This commit is contained in:
littmus 2015-05-02 13:42:03 +09:00
parent 7e06129afa
commit 2c5906ea58

View File

@ -22,7 +22,7 @@ from yarg.exceptions import HTTPError
REGEXP = [
re.compile(r'^import (.+)$'),
re.compile(r'from (.*?) import (?:.*)')
re.compile(r'^from ((?!\.+).*?) import (?:.*)$')
]