Fixed #23088 -- Used `six` `range` type in `Paginator.page_range`.

Thanks Keryn Knight for the report.