Merge "Sync oslo lockutils to nova"

This commit is contained in:
Jenkins
2014-06-30 22:22:47 +00:00
committed by Gerrit Code Review

View File

@@ -15,7 +15,6 @@
import contextlib
import errno
import fcntl
import functools
import os
import shutil
@@ -195,7 +194,9 @@ if os.name == 'nt':
FileLock = _WindowsLock
else:
import base64
import fcntl
import hashlib
import posix_ipc
InterProcessLock = _PosixLock
FileLock = _FcntlLock
@@ -239,7 +240,7 @@ def external_lock(name, lock_file_prefix=None, lock_path=None):
def remove_external_lock_file(name, lock_file_prefix=None):
"""Remove a external lock file when it's not used anymore
"""Remove an external lock file when it's not used anymore
This will be helpful when we have a lot of lock files
"""
with internal_lock(name):