contrib/import-checker.py
changeset 43954 303576116ac1
parent 43596 0ad5d6c4bfad
child 44413 4cabeea6d214
equal deleted inserted replaced
43953:d825e7e0ca6e 43954:303576116ac1
   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: