from .model import Model

class Record(Model, object):

    def __init__(self, request, domain, attributes):
        self.domain  = domain

        super(Record, self).__init__(request, attributes)

    def update(self, attributes):
        success = False

        self.assign(attributes)

        response = self.request.put(
            'domains/{0}/records/{1}'.format(self.domain.name, self.id),
            {'record': attributes}
        )

        return response.was_successful()

    def delete(self):
        response = self.request.delete('domains/{0}/records/{1}'.format(self.domain.name, self.id))
        return response.was_successful()

from .model import Model

class Record(Model, object):

    def __init__(self, request, domain, attributes):
        self.domain  = domain

        super(Record, self).__init__(request, attributes)

    def update(self, attributes):
        self.assign(attributes)

        response = self.request.put(
            'domains/{0}/records/{1}'.format(self.domain.name, self.id),
            {'record': attributes}
        )

        return response.was_successful()

    def delete(self):
        response = self.request.delete('domains/{0}/records/{1}'.format(self.domain.name, self.id))
        return response.was_successful()

Remove unused assignment in `Record` class
Remove unused assignment in `Record` class
  from .model import Model
  
  class Record(Model, object):
  
      def __init__(self, request, domain, attributes):
          self.domain  = domain
  
          super(Record, self).__init__(request, attributes)
  
      def update(self, attributes):
-         success = False
- 
          self.assign(attributes)
  
          response = self.request.put(
              'domains/{0}/records/{1}'.format(self.domain.name, self.id),
              {'record': attributes}
          )
  
          return response.was_successful()
  
      def delete(self):
          response = self.request.delete('domains/{0}/records/{1}'.format(self.domain.name, self.id))
          return response.was_successful()
  
Remove unused assignment in `Record` class
## Code Before:
from .model import Model

class Record(Model, object):

    def __init__(self, request, domain, attributes):
        self.domain  = domain

        super(Record, self).__init__(request, attributes)

    def update(self, attributes):
        success = False

        self.assign(attributes)

        response = self.request.put(
            'domains/{0}/records/{1}'.format(self.domain.name, self.id),
            {'record': attributes}
        )

        return response.was_successful()

    def delete(self):
        response = self.request.delete('domains/{0}/records/{1}'.format(self.domain.name, self.id))
        return response.was_successful()

## Instruction:
Remove unused assignment in `Record` class
## Code After:
from .model import Model

class Record(Model, object):

    def __init__(self, request, domain, attributes):
        self.domain  = domain

        super(Record, self).__init__(request, attributes)

    def update(self, attributes):
        self.assign(attributes)

        response = self.request.put(
            'domains/{0}/records/{1}'.format(self.domain.name, self.id),
            {'record': attributes}
        )

        return response.was_successful()

    def delete(self):
        response = self.request.delete('domains/{0}/records/{1}'.format(self.domain.name, self.id))
        return response.was_successful()
