def transform_line(line):
 if (line == 'import '):
  return ''
 for (old_module, new_module) in REPLACEMENTS.iteritems():
  result = transform_old_to_new(line, old_module, new_module)
  if (result is not None):
   return result
 return line

def transform_line ( line ) : if ( line == 'import ' ) : return '' for ( old_module , new_module ) in REPLACEMENTS . iteritems ( ) : result = transform_old_to_new ( line , old_module , new_module ) if ( result is not None ) : return result return line
transforms an import line in a pb2 module .