def get_mirrors(hostname=None):
 if (hostname is None):
  hostname = DEFAULT_MIRROR_URL
 try:
  hostname = socket.gethostbyname_ex(hostname)[0]
 except socket.gaierror:
  return []
 end_letter = hostname.split('.', 1)
 return [('%s.%s' % (s, end_letter[1])) for s in string_range(end_letter[0])]

def get_mirrors ( hostname = None ) : if ( hostname is None ) : hostname = DEFAULT_MIRROR_URL try : hostname = socket . gethostbyname_ex ( hostname ) [ 0 ] except socket . gaierror : return [ ] end_letter = hostname . split ( '.' , 1 ) return [ ( '%s.%s' % ( s , end_letter [ 1 ] ) ) for s in string_range ( end_letter [ 0 ] ) ]
get a repository mirror list from gitosis .