[PATCH] py3: 'dict_keys' object has no attribute 'sort'

Stephen Finucane stephen.finucane at intel.com
Wed Jan 20 08:52:48 AEDT 2016


Resolve an issue causing the aforementioned issue.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 patchwork/parser.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/patchwork/parser.py b/patchwork/parser.py
index 1993087..8bf9b21 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
 
-- 
2.0.0



More information about the Patchwork mailing list