          # The field names we're passing though here only include fields
          # which may map onto a model field. Any dotted field name lookups
          # cannot map to a field, and must be a traversal, so we're not
          # including those.
          field_names = set([
              field.source for field in self.fields.values()
              if (field.source != '*') and ('.' not in field.source)
          ])
  
          # Note that we make sure to check `unique_together` both on the
 
</s> remove         ])
 </s> add         } </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} </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     included = set((
        1,
        current - 1, current, current + 1,
        final
    ))
 </s> add     included = {1, current - 1, current, current + 1, final}
        field_names = {
          # The field names we're passing though here only include fields
          # which may map onto a model field. Any dotted field name lookups
          # cannot map to a field, and must be a traversal, so we're not
          # including those.
        field_names = {
              field.source for field in self.fields.values()
              if (field.source != '*') and ('.' not in field.source)
          ])
  
          # Note that we make sure to check `unique_together` both on the
keep keep keep keep replace keep keep keep keep keep
 Replaced all dict and set conversions from lists to dict and set literals. 
rest_framework/serializers.py