def finalize(self):
assert (self.__asynchronous == 0) and not self.__dirty
if self.__buildIdCache is not None:
self.__buildIdCache.close()
self.__buildIdCache = None
if self.__lock:
try:
os.unlink(self.__lock)
except FileNotFoundError:
from .tty import colorize
from sys import stderr
print(colorize("Warning: lock file was deleted while Bob was still running!", "33"),
file=stderr)
except OSError as e:
from .tty import colorize
from sys import stderr
print(colorize("Warning: cannot unlock workspace: "+str(e), "33"),
file=stderr)
评论列表
文章目录