def _get_page_links(page_numbers, current, url_func):
 page_links = []
 for page_number in page_numbers:
  if (page_number is None):
   page_link = PAGE_BREAK
  else:
   page_link = PageLink(url=url_func(page_number), number=page_number, is_active=(page_number == current), is_break=False)
  page_links.append(page_link)
 return page_links

def _get_page_links ( page_numbers , current , url_func ) : page_links = [ ] for page_number in page_numbers : if ( page_number is None ) : page_link = PAGE_BREAK else : page_link = PageLink ( url = url_func ( page_number ) , number = page_number , is_active = ( page_number == current ) , is_break = False ) page_links . append ( page_link ) return page_links
given a list of page numbers and none page breaks .