def rmtree(dname):
    def paranoia_ok(dname):
        if '/..' in dname or '\\..' in dname:
            return False
        return '/tmp/' in dname or '\\temp\\' in dname
    # Refuse to remove directories that are not in a common temp
    # directory. This check is just for peace of mind, it should
    # never fail. In platforms with uncommon temp directories this
    # check may result in a temp directory not being cleaned up.
    if paranoia_ok(dname):
        try:
            shutil.rmtree(dname)
        except __HOLE__:
            # On Windows a WindowsError is raised when files are
            # still open
            pass
dataset/ETHPy150Open ravello/testmill/lib/testmill/test/__init__.py/rmtree