[StGit PATCH 2/2] Use the builtin set() instead of sets.Set()
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>
---
stgit/git.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/stgit/git.py b/stgit/git.py
index 8857209..4b4c626 100644
--- a/stgit/git.py
+++ b/stgit/git.py
@@ -26,7 +26,6 @@ from stgit.utils import *
from stgit.out import *
from stgit.run import *
from stgit.config import config
-from sets import Set
# git exception class
class GitException(Exception):
@@ -959,10 +958,9 @@ def __remotes_from_dir(dir):
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