def VerifyNoCollidingTargets(targets):
 used = {}
 for target in targets:
  (path, name) = target.rsplit(':', 1)
  (subdir, gyp) = os.path.split(path)
  if (not subdir):
   subdir = '.'
  key = ((subdir + ':') + name)
  if (key in used):
   raise GypError(('Duplicate target name "%s" in directory "%s" used both in "%s" and "%s".' % (name, subdir, gyp, used[key])))
  used[key] = gyp

def VerifyNoCollidingTargets ( targets ) : used = { } for target in targets : ( path , name ) = target . rsplit ( ':' , 1 ) ( subdir , gyp ) = os . path . split ( path ) if ( not subdir ) : subdir = '.' key = ( ( subdir + ':' ) + name ) if ( key in used ) : raise GypError ( ( 'Duplicate target name "%s" in directory "%s" used both in "%s" and "%s".' % ( name , subdir , gyp , used [ key ] ) ) ) used [ key ] = gyp
verify that no two targets in the same directory share the same name .