Permalink
Browse files

simplify to a list comp

  • Loading branch information...
1 parent 29ee4b4 commit dd1ad68890f27dd527c74ba8c6f3adf4689c2b06 @pjenvey pjenvey committed Apr 3, 2013
Showing with 1 addition and 4 deletions.
  1. +1 −4 docs/index.rst
View
@@ -290,10 +290,7 @@ you use this groupfinder. The groupfinder uses the
group_list = connector.user_groups(dn)
if group_list is None:
return None
- group_dns = []
- for dn, attrs in group_list:
- group_dns.append(dn)
- return group_dns
+ return [dn for dn, attrs in group_list]
The effect of this configuration is that a user is unable to view the
``root`` view at ``/`` until logging in with successful credentials, because

0 comments on commit dd1ad68

Please sign in to comment.