def FindUnixSocket():
 for path in _POTENTIAL_SOCKET_LOCATIONS:
  if os.path.exists(path):
   return path

def FindUnixSocket ( ) : for path in _POTENTIAL_SOCKET_LOCATIONS : if os . path . exists ( path ) : return path
find the unix socket for mysql by scanning some known locations .