theano/gof/cmodule.py
def clear_base_files(self):
        """
        Remove base directories 'cutils_ext', 'lazylinker_ext' and
        'scan_perform' if present.

        Note that we do not delete them outright because it may not work on
        some systems due to these modules being currently in use. Instead we
        rename them with the '.delete.me' extension, to mark them to be deleted
        next time we clear the cache.

        """
        with compilelock.lock_ctx():
            for base_dir in ('cutils_ext', 'lazylinker_ext', 'scan_perform'):
                to_delete = os.path.join(self.dirname, base_dir + '.delete.me')
                if os.path.isdir(to_delete):
                    try:
                        shutil.rmtree(to_delete)
                        _logger.debug('Deleted: %s', to_delete)
                    except Exception:
                        _logger.warning('Could not delete %s', to_delete)
                        continue
                to_rename = os.path.join(self.dirname, base_dir)
                if os.path.isdir(to_rename):
                    try:
                        shutil.move(to_rename, to_delete)
                    except Exception:
                        _logger.warning('Could not move %s to %s',
                                        to_rename, to_delete)

        Remove base directories 'cutils_ext', 'lazylinker_ext' and
        'scan_perform' if present.

        Note that we do not delete them outright because it may not work on
        some systems due to these modules being currently in use. Instead we
        rename them with the '.delete.me' extension, to mark them to be deleted
        next time we clear the cache.

        


Note that we do not delete them outright because it may not work on
some systems due to these modules being currently in use. Instead we
rename them with the '.delete.me' extension, to mark them to be deleted
next time we clear the cache.
Note that we do not delete them outright because it may not work on some systems due to these modules being currently in use . Instead we rename them with the ' . delete . me ' extension to mark them to be deleted next time we clear the cache .
def clear_base_files(self):
        with compilelock.lock_ctx():
            for base_dir in ('cutils_ext', 'lazylinker_ext', 'scan_perform'):
                to_delete = os.path.join(self.dirname, base_dir + '.delete.me')
                if os.path.isdir(to_delete):
                    try:
                        shutil.rmtree(to_delete)
                        _logger.debug('Deleted: %s', to_delete)
                    except Exception:
                        _logger.warning('Could not delete %s', to_delete)
                        continue
                to_rename = os.path.join(self.dirname, base_dir)
                if os.path.isdir(to_rename):
                    try:
                        shutil.move(to_rename, to_delete)
                    except Exception:
                        _logger.warning('Could not move %s to %s',
                                        to_rename, to_delete)
def clear_base_files ( self ) : with compilelock . lock_ctx ( ) : for base_dir in ( 'cutils_ext' , 'lazylinker_ext' , 'scan_perform' ) : to_delete = os . path . join ( self . dirname , base_dir + '.delete.me' ) if os . path . isdir ( to_delete ) : try : shutil . rmtree ( to_delete ) _logger . debug ( 'Deleted: %s' , to_delete ) except Exception : _logger . warning ( 'Could not delete %s' , to_delete ) continue to_rename = os . path . join ( self . dirname , base_dir ) if os . path . isdir ( to_rename ) : try : shutil . move ( to_rename , to_delete ) except Exception : _logger . warning ( 'Could not move %s to %s' , to_rename , to_delete )
Remove base directories 'cutils_ext', 'lazylinker_ext' and
'scan_perform' if present.
Remove base directories ' cutils_ext ' ' lazylinker_ext ' and ' scan_perform ' if present .
"""
        Remove base directories 'cutils_ext', 'lazylinker_ext' and
        'scan_perform' if present.

        Note that we do not delete them outright because it may not work on
        some systems due to these modules being currently in use. Instead we
        rename them with the '.delete.me' extension, to mark them to be deleted
        next time we clear the cache.

        """
self