eclean: Fix pkg sorting to work with Python3
[gentoolkit.git] / pym / gentoolkit / eclean / output.py
index e7ce59bdae94f36ce923424b93de46c32c8a3bc9..ab53ab4eb0900e5fd776899dffb5b043c4d54e37 100644 (file)
@@ -178,7 +178,7 @@ class OutputControl(object):
                @param pkgs: dict. of {cat/pkg-ver: src_uri,}
                """
                indent = ' ' * 12
-               keys = pkgs.keys()
+               keys = list(pkgs.keys())
                keys.sort()
                for key in keys:
                        if pkgs[key]: