diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-22 00:21:48 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-22 00:21:48 +0200 |
commit | 3e91500d115b58d8b807be6c7daffa19fbd49a26 (patch) | |
tree | d412337af5252289ca2d9c1ee1ef46d3896cf2a1 /paste | |
parent | 519d2314eee711fbe2f118af0b753fabd91c7eb9 (diff) | |
download | paste-git-3e91500d115b58d8b807be6c7daffa19fbd49a26.tar.gz |
Fix grantip on Python 3
Diffstat (limited to 'paste')
-rw-r--r-- | paste/auth/grantip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/auth/grantip.py b/paste/auth/grantip.py index 2ee9bcf..3fe6e1c 100644 --- a/paste/auth/grantip.py +++ b/paste/auth/grantip.py @@ -62,7 +62,7 @@ class GrantIPMiddleware(object): def _set_roles(self, environ, roles): cur_roles = environ.get('REMOTE_USER_TOKENS', '').split(',') # Get rid of empty roles: - cur_roles = filter(None, cur_roles) + cur_roles = list(filter(None, cur_roles)) remove_roles = [] for role in roles: if role.startswith('-'): |