code: def expand_pagination(pages):
      
      # If there is no hyphen, it's a single page, and we're good to go
      parts = pages.split('-')
      if len(parts) == 1: # No hyphen, so no split
          return pages
      elif len(parts) == 2:
          start = parts[0]
          end = parts[1]
          # If the end is the same number of digits as the start, then we
          # don't change anything!
          if len(start) == len(end):
              return pages
          # Otherwise, replace the last digits of start with the digits of end
          num_end_digits = len(end)
          new_end = start[:-num_end_digits] + end
          return '%s-%s' % (start, new_end)
      else: # More than one hyphen, something weird happened
          logger.warning("Multiple hyphens in page number: %s" % pages)
          return pages
docs: Convert a page number to long form, e.g., from 456-7 to 456-457.