From: Catalin Marinas Date: Thu, 1 Feb 2007 22:52:02 +0000 (+0000) Subject: set() is not a builtin function in Python 2.3 X-Git-Tag: v0.14.3~357 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/fba895f5f12a652c248b0fd02b7c41f8342cfbdc set() is not a builtin function in Python 2.3 This patch uses the sets.Set class rather than the builtin function. Signed-off-by: Catalin Marinas --- diff --git a/stgit/git.py b/stgit/git.py index e30b959..c7cc6a7 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -23,6 +23,7 @@ import sys, os, popen2, re, gitmergeonefile from stgit import basedir from stgit.utils import * from stgit.config import config +from sets import Set # git exception class class GitException(Exception): @@ -913,9 +914,9 @@ 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