提交 fc29c78b authored 作者: Frederic Bastien's avatar Frederic Bastien

backport to python2.4

上级 cced27f1
...@@ -400,12 +400,13 @@ class ModuleCache(object): ...@@ -400,12 +400,13 @@ class ModuleCache(object):
module = fn(location=location) # WILL FAIL FOR BAD C CODE module = fn(location=location) # WILL FAIL FOR BAD C CODE
except Exception, e: except Exception, e:
_rmtree(location) _rmtree(location)
compilelock.release_lock()
#try: #try:
#except Exception, ee: #except Exception, ee:
#error('failed to cleanup location', location, ee) #error('failed to cleanup location', location, ee)
raise raise
finally:
compilelock.release_lock() compilelock.release_lock()
name = module.__file__ name = module.__file__
debug("Adding module to cache", key, name) debug("Adding module to cache", key, name)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论