def isFile(self):
        """ Check if the given object is a file
        """
        try:
            filetype = file
        except __HOLE__:
            filetype = io.IOBase

        return self._wrap(type(self.obj) is filetype)

    # :DEPRECATED: Python 2 only.
    # 3 removes this.
dataset/ETHPy150Open serkanyersen/underscore.py/src/underscore.py/underscore.isFile