(self)
Close a file on tape.
Close a file on tape.
Close a file on tape .
def close(self):
        """Close a file on tape."""
        # terminate cassette text files with NUL
        if self.mode == b'O':
            self.write(b'\0')
        try:
            self._fhandle.close()
        except EnvironmentError:
            pass
        TextFileBase.close(self)
def close ( self ) : # terminate cassette text files with NUL if self . mode == b'O' : self . write ( b'\0' ) try : self . _fhandle . close ( ) except EnvironmentError : pass TextFileBase . close ( self )