equal
deleted
inserted
replaced
534 # symbol import. |
534 # symbol import. |
535 if fullname != '__future__': |
535 if fullname != '__future__': |
536 if not fullname or ( |
536 if not fullname or ( |
537 fullname in stdlib_modules |
537 fullname in stdlib_modules |
538 # allow standard 'from typing import ...' style |
538 # allow standard 'from typing import ...' style |
539 and fullname != 'typing' |
539 and fullname.startswith('.') |
540 and fullname not in localmods |
540 and fullname not in localmods |
541 and fullname + '.__init__' not in localmods |
541 and fullname + '.__init__' not in localmods |
542 ): |
542 ): |
543 yield msg('relative import of stdlib module') |
543 yield msg('relative import of stdlib module') |
544 else: |
544 else: |