Mercurial > p > roundup > code
diff roundup/scripts/roundup_server.py @ 5398:99667a0cbd2d
Python 3 preparation: use list() around filter() as needed.
Tool-assisted patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 23:14:04 +0000 |
| parents | 23b8e6067f7c |
| children | 88dbacd11cd1 |
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py Tue Jul 24 23:13:17 2018 +0000 +++ b/roundup/scripts/roundup_server.py Tue Jul 24 23:14:04 2018 +0000 @@ -367,7 +367,7 @@ length = self.headers.getheader('content-length') if length: env['CONTENT_LENGTH'] = length - co = filter(None, self.headers.getheaders('cookie')) + co = list(filter(None, self.headers.getheaders('cookie'))) if co: env['HTTP_COOKIE'] = ', '.join(co) env['HTTP_AUTHORIZATION'] = self.headers.getheader('authorization')
