third_party/blink/tools/blinkpy/common/system/filesystem.py
def remove(self, path, osremove=os.remove, retry=True):
        """Removes a file.

        On Windows, if a process was recently killed and it held on to a file,
        the OS will hold on to the file for a short while. This makes attempts
        to delete the file fail. To work around that, this method will retry
        for a few seconds until Windows is done with the file.
        """
        try:
            exceptions.WindowsError
        except AttributeError:
            exceptions.WindowsError = FileSystem._WindowsError

        retry_timeout_sec = 3.0
        sleep_interval = 0.1
        while True:
            try:
                # The default os.remove() supports UNC paths on Windows.
                osremove(self._path_for_access(path))
                return True
            except exceptions.WindowsError:
                time.sleep(sleep_interval)
                retry_timeout_sec -= sleep_interval
                if retry_timeout_sec < 0 and not retry:
                    raise
Removes a file.

        On Windows, if a process was recently killed and it held on to a file,
        the OS will hold on to the file for a short while. This makes attempts
        to delete the file fail. To work around that, this method will retry
        for a few seconds until Windows is done with the file.
        
Removes a file.
On Windows, if a process was recently killed and it held on to a file,
the OS will hold on to the file for a short while. This makes attempts
to delete the file fail. To work around that, this method will retry
for a few seconds until Windows is done with the file.
Removes a file . On Windows if a process was recently killed and it held on to a file the OS will hold on to the file for a short while . This makes attempts to delete the file fail . To work around that this method will retry for a few seconds until Windows is done with the file .
def remove(self, path, osremove=os.remove, retry=True):
        try:
            exceptions.WindowsError
        except AttributeError:
            exceptions.WindowsError = FileSystem._WindowsError
        retry_timeout_sec = 3.0
        sleep_interval = 0.1
        while True:
            try:
                osremove(self._path_for_access(path))
                return True
            except exceptions.WindowsError:
                time.sleep(sleep_interval)
                retry_timeout_sec -= sleep_interval
                if retry_timeout_sec < 0 and not retry:
                    raise
def remove ( self , path , osremove = os . remove , retry = True ) : try : exceptions . WindowsError except AttributeError : exceptions . WindowsError = FileSystem . _WindowsError retry_timeout_sec = 3.0 sleep_interval = 0.1 while True : try : osremove ( self . _path_for_access ( path ) ) return True except exceptions . WindowsError : time . sleep ( sleep_interval ) retry_timeout_sec -= sleep_interval if retry_timeout_sec < 0 and not retry : raise
Removes a file.
Removes a file .
"""Removes a file.

        On Windows, if a process was recently killed and it held on to a file,
        the OS will hold on to the file for a short while. This makes attempts
        to delete the file fail. To work around that, this method will retry
        for a few seconds until Windows is done with the file.
        """ # The default os.remove() supports UNC paths on Windows.
self
path
osremove
retry