Replace frozenset with compat.UniqueFrozenset
authorMichael Hanselmann <hansmi@google.com>
Mon, 10 Dec 2012 17:45:26 +0000 (18:45 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 19 Dec 2012 16:29:53 +0000 (17:29 +0100)
commitb8028dcf3758f50c749f6792b3775041044699de
treec81bf7efa83da13073d7ef9d3100bb543e614119
parenta30a61781fa8ceab855ff2e4f6a98ef5485e4b8c
Replace frozenset with compat.UniqueFrozenset

This is not a trivial s/frozenset/compat.UniqueFrozenset/, but rather
only replaces “frozenset” where appropriate. Most of the places are
“static” information that doesn't change after the module has been
loaded.

Some docstrings and code formatting (e.g. empty lines) issues are
addressed as well. Some lines got too long and were wrapped.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
31 files changed:
lib/backend.py
lib/bdev.py
lib/cli.py
lib/client/gnt_debug.py
lib/client/gnt_group.py
lib/client/gnt_instance.py
lib/client/gnt_node.py
lib/cmdlib.py
lib/confd/client.py
lib/constants.py
lib/errors.py
lib/impexpd/__init__.py
lib/locking.py
lib/luxi.py
lib/mcpu.py
lib/pathutils.py
lib/query.py
lib/rapi/__init__.py
lib/rapi/baserlib.py
lib/rapi/rlib2.py
lib/ssconf.py
lib/tools/ensure_dirs.py
lib/vcluster.py
lib/watcher/__init__.py
qa/qa_rapi.py
test/docs_unittest.py
test/ganeti.mcpu_unittest.py
test/ganeti.opcodes_unittest.py
test/ganeti.rapi.testutils_unittest.py
tools/cluster-merge
tools/lvmstrap