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

Typo fixes

上级 9ea0c530
...@@ -892,8 +892,8 @@ class ModuleCache(object): ...@@ -892,8 +892,8 @@ class ModuleCache(object):
key_data = None key_data = None
# We have never seen this key before. # We have never seen this key before.
# We acquire the lock later only if we where able to # We acquire the lock later only if we were able to
# generate c code Otherwise, we would take the lock for op # generate C code. Otherwise, we would take the lock for ops
# that have only a perform(). # that have only a perform().
lock_taken = False lock_taken = False
# This try/finally block ensures that the lock is released once we # This try/finally block ensures that the lock is released once we
...@@ -920,7 +920,7 @@ class ModuleCache(object): ...@@ -920,7 +920,7 @@ class ModuleCache(object):
src_code = compile_steps.next() src_code = compile_steps.next()
module_hash = get_module_hash(src_code, key) module_hash = get_module_hash(src_code, key)
# The op have c_code, so take the lock. # The op has c_code, so take the lock.
compilelock.get_lock() compilelock.get_lock()
lock_taken = True lock_taken = True
assert os.path.exists(location), ( assert os.path.exists(location), (
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论