def missing_whitespace_after_import_keyword(logical_line):
 line = logical_line
 indicator = ' import('
 if line.startswith('from '):
  found = line.find(indicator)
  if ((-1) < found):
   pos = ((found + len(indicator)) - 1)
   (yield (pos, 'E275 missing whitespace after keyword'))

def missing_whitespace_after_import_keyword ( logical_line ) : line = logical_line indicator = ' import(' if line . startswith ( 'from ' ) : found = line . find ( indicator ) if ( ( - 1 ) < found ) : pos = ( ( found + len ( indicator ) ) - 1 ) ( yield ( pos , 'E275 missing whitespace after keyword' ) )
multiple imports in form from x import should have space between import statement and parenthesised name list .