          return list(range(1, final + 1))
  
      # We always include the first two pages, last two pages, and
      # two pages either side of the current page.
      included = set((
          1,
          current - 1, current, current + 1,
          final
      ))
  
      # If the break would only exclude a single page number then we
      # may as well include the page number instead of the break.
      if current <= 4:
          included.add(2)
 
</s> remove         unique_constraint_names -= set([None])
 </s> add         unique_constraint_names -= {None} </s> remove         return dict([
            (key, value if isinstance(value, list) else [value])
 </s> add         return {
            key: value if isinstance(value, list) else [value] </s> remove         ])
 </s> add         } </s> remove         field_names = set([
 </s> add         field_names = { </s> remove             unique_constraint_names |= set([
                model_field.unique_for_date,
                model_field.unique_for_month,
                model_field.unique_for_year
            ])
 </s> add             unique_constraint_names |= {model_field.unique_for_date, model_field.unique_for_month,
                                        model_field.unique_for_year}
    included = {1, current - 1, current, current + 1, final}
          return list(range(1, final + 1))
  
      # We always include the first two pages, last two pages, and
      # two pages either side of the current page.
    included = {1, current - 1, current, current + 1, final}
    included = {1, current - 1, current, current + 1, final}
    included = {1, current - 1, current, current + 1, final}
    included = {1, current - 1, current, current + 1, final}
    included = {1, current - 1, current, current + 1, final}
  
      # If the break would only exclude a single page number then we
      # may as well include the page number instead of the break.
      if current <= 4:
          included.add(2)
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Replaced all dict and set conversions from lists to dict and set literals. 
rest_framework/pagination.py