Alter is_locked() helper comment

The is_locked() helper method comment
was created when we used threading2 but
since we don't use it anymore we need to
adjust that comment to reflect the current
usage.

Change-Id: I06051fb2d65b8c871e916d7e64e6056ecff3afda
This commit is contained in:
Joshua Harlow
2014-01-12 17:28:25 -08:00
parent 135f562408
commit 75dca0bd4d

View File

@@ -79,8 +79,8 @@ class MultiLock(object):
def __enter__(self):
def is_locked(lock):
# NOTE(harlowja): the threading2 lock doesn't seem to have this
# attribute, so that's why we are checking it existing first.
# NOTE(harlowja): reentrant locks (rlock) don't have this
# attribute, but normal non-reentrant locks do, how odd...
if hasattr(lock, 'locked'):
return lock.locked()
return False