summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-22 00:21:48 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-04-22 00:21:48 +0200
commit82f13b6240a5a0e92f68291d90bef7e75d82a3ee (patch)
treed412337af5252289ca2d9c1ee1ef46d3896cf2a1 /paste
parent1dd31fde1a4edc7fd2f66a738125231ba5c176ae (diff)
downloadpaste-82f13b6240a5a0e92f68291d90bef7e75d82a3ee.tar.gz
Fix grantip on Python 3
Diffstat (limited to 'paste')
-rw-r--r--paste/auth/grantip.py2
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('-'):