From: Stephen Finucane Date: Tue, 19 Jan 2016 21:50:44 +0000 (+0000) Subject: py3: 'dict_keys' object has no attribute 'sort' X-Git-Tag: v1.1.0~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e35fdceccb48c627dc432ddb0d724ec845409d;p=thirdparty%2Fpatchwork.git py3: 'dict_keys' object has no attribute 'sort' Resolve an issue causing the aforementioned issue. Signed-off-by: Stephen Finucane --- diff --git a/patchwork/parser.py b/patchwork/parser.py index 1993087a..8bf9b213 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -269,8 +269,7 @@ def patch_get_filenames(str): filename = '/'.join(filename.split('/')[1:]) filenames[filename] = True - filenames = filenames.keys() - filenames.sort() + filenames = sorted(filenames.keys()) return filenames