提交 ef3c9199 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merged -- no conflict

......@@ -760,18 +760,17 @@ class ModuleCache(object):
compilelock.get_lock()
# This try/finally block ensures that the lock is released once we
# are done writing in the cache file or after raising an exception.
try:
location = dlimport_workdir(self.dirname)
except OSError, e:
error(e)
if e.errno == 31:
error('There are', len(os.listdir(config.compiledir)),
'files in', config.compiledir)
raise
try:
# Embedding two try statements for Python 2.4 compatibility
# (cannot do try / except / finally).
try:
location = dlimport_workdir(self.dirname)
except OSError, e:
error(e)
if e.errno == 31:
error('There are', len(os.listdir(config.compiledir)),
'files in', config.compiledir)
raise
try:
compile_steps = fn(location=location).__iter__()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论