From 05596740ad58f3f667229b7f83d0efb40030dda0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 24 Jun 2013 14:34:45 -0400 Subject: [PATCH] API get_members: Return a dictionary of users, not a list of tuples. I believe this should require no special work on deploy, since some grepping of logs suggests we are not currently using this API query. (imported from commit 240086f900c6680cbc90bf6a2f334a9e1f172df6) --- examples/list-members | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/list-members b/examples/list-members index 3d61109..d2ed81a 100755 --- a/examples/list-members +++ b/examples/list-members @@ -41,5 +41,5 @@ parser.add_option_group(humbug.generate_option_group(parser)) client = humbug.init_from_options(options) -for name, email in client.get_members()["members"]: - print name, email +for user in client.get_members()["members"]: + print user["full_name"], user["email"]