Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
d6646186
Commit
d6646186
authored
Feb 18, 2008
by
Guido Trotter
Browse files
Fix a couple of SharedLock docstrings
Use the actual class name rather than a spaced version of it. Reviewed-by: iustinp
parent
bae27f68
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/locking.py
View file @
d6646186
...
...
@@ -38,7 +38,7 @@ class SharedLock:
"""
def
__init__
(
self
):
"""Construct a new Shared
Lock"""
"""Construct a new SharedLock"""
# we have two conditions, c_shr and c_exc, sharing the same lock.
self
.
__lock
=
threading
.
Lock
()
self
.
__turn_shr
=
threading
.
Condition
(
self
.
__lock
)
...
...
test/ganeti.locking_unittest.py
View file @
d6646186
...
...
@@ -32,7 +32,7 @@ from threading import Thread
class
TestSharedLock
(
unittest
.
TestCase
):
"""Shared
l
ock tests"""
"""Shared
L
ock tests"""
def
setUp
(
self
):
self
.
sl
=
locking
.
SharedLock
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment