[sagenb] 18/179: use set(), not {}

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 151a0a7e685b6981c05c968d046d451d2bcddfe9
Author: Robin Martinjak <rob at rmartinjak.de>
Date:   Sun Jul 15 19:09:32 2012 +0200

    use set(), not {}
---
 sagenb/notebook/user_manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sagenb/notebook/user_manager.py b/sagenb/notebook/user_manager.py
index 77adcd0..f7815cd 100644
--- a/sagenb/notebook/user_manager.py
+++ b/sagenb/notebook/user_manager.py
@@ -547,7 +547,7 @@ class ExtAuthUserManager(SimpleUserManager):
         """
         Returns a list of usernames that are found when calling user_lookup on all enabled auth methods
         """
-        r = {}
+        r = set()
         for a in self._auth_methods:
             if self._conf[a]:
                 names = self._auth_methods[a].user_lookup(search)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list