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