import logging

logger = logging.getLogger(__name__)


class BasicFormat(object):
    pass


class FileFormat(BasicFormat):

    def __init__(self, file_object):
        self._file_object = file_object

    @property
    def data(self):
        return self.read()

    def read(self, size=-1):
        return self._file_object.read(size)

    def seek(self, offset):
        return self._file_object.seek(offset)

    def tell(self):
        return self._file_object.tell()

    def __iter__(self):
        return iter(self._file_object)

    def close(self):
        return self._file_object.close()


class TextFile(FileFormat):
    pass


TextFile = 'TextFile'

Replace TextFile class definition with str constant.
Replace TextFile class definition with str constant.

- import logging
  
- logger = logging.getLogger(__name__)
+ TextFile = 'TextFile'
  
- 
- class BasicFormat(object):
-     pass
- 
- 
- class FileFormat(BasicFormat):
- 
-     def __init__(self, file_object):
-         self._file_object = file_object
- 
-     @property
-     def data(self):
-         return self.read()
- 
-     def read(self, size=-1):
-         return self._file_object.read(size)
- 
-     def seek(self, offset):
-         return self._file_object.seek(offset)
- 
-     def tell(self):
-         return self._file_object.tell()
- 
-     def __iter__(self):
-         return iter(self._file_object)
- 
-     def close(self):
-         return self._file_object.close()
- 
- 
- class TextFile(FileFormat):
-     pass
- 
Replace TextFile class definition with str constant.
## Code Before:
import logging

logger = logging.getLogger(__name__)


class BasicFormat(object):
    pass


class FileFormat(BasicFormat):

    def __init__(self, file_object):
        self._file_object = file_object

    @property
    def data(self):
        return self.read()

    def read(self, size=-1):
        return self._file_object.read(size)

    def seek(self, offset):
        return self._file_object.seek(offset)

    def tell(self):
        return self._file_object.tell()

    def __iter__(self):
        return iter(self._file_object)

    def close(self):
        return self._file_object.close()


class TextFile(FileFormat):
    pass

## Instruction:
Replace TextFile class definition with str constant.
## Code After:

TextFile = 'TextFile'
