Commit 7dc359f0 authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Fix the indentation of _LockList



.. to 2 spaces instead of 4.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 185192f2
......@@ -289,16 +289,16 @@ def _VerifyLocks(lu, _mode_whitelist=_NODE_ALLOC_MODE_WHITELIST,
def _LockList(names):
"""If 'names' is a string, make it a single-element list.
"""If 'names' is a string, make it a single-element list.
@type names: list or string
@param names: Lock names
@rtype: a list of strings
@return: if 'names' argument is an iterable, a list of it;
if it's a string, make it a one-element list
@type names: list or string
@param names: Lock names
@rtype: a list of strings
@return: if 'names' argument is an iterable, a list of it;
if it's a string, make it a one-element list
"""
return [names] if isinstance(names, basestring) else list(names)
"""
return [names] if isinstance(names, basestring) else list(names)
class Processor(object):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment