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

Merged -- no conflict

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