This patch uses the sets.Set class rather than the builtin function.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
from stgit import basedir
from stgit.utils import *
from stgit.config import config
from stgit import basedir
from stgit.utils import *
from stgit.config import config
# git exception class
class GitException(Exception):
# git exception class
class GitException(Exception):
"""Return the list of remotes in the repository
"""
"""Return the list of remotes in the repository
"""
- return set(__remotes_from_config()) | \
- set(__remotes_from_dir('remotes')) | \
- set(__remotes_from_dir('branches'))
+ return Set(__remotes_from_config()) | \
+ Set(__remotes_from_dir('remotes')) | \
+ Set(__remotes_from_dir('branches'))
def remotes_local_branches(remote):
"""Returns the list of local branches fetched from given remote
def remotes_local_branches(remote):
"""Returns the list of local branches fetched from given remote