We can do that now that we're guaranteed to have Python 2.4 or later.
Signed-off-by: Karl Hasselström <kha@treskal.com>
from stgit.out import *
from stgit.run import *
from stgit.config import config
from stgit.out import *
from stgit.run import *
from stgit.config import config
# git exception class
class GitException(Exception):
# git exception class
class GitException(Exception):
def remotes_list():
"""Return the list of remotes in the repository
"""
def remotes_list():
"""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