From: Karl Hasselström Date: Mon, 3 Sep 2007 21:48:51 +0000 (+0200) Subject: Use the builtin set() instead of sets.Set() X-Git-Tag: v0.14~98 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/8c0c72c713459980d03716e3471806fff14f3c8a 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 --- 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