diff options
author | Devan Franchini <twitch153@hotmail.com> | 2013-09-22 23:40:30 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-09-24 14:20:20 -0400 |
commit | 58a7dbcc8faf452f4e0355dbff42a2882a8b0e2b (patch) | |
tree | 107604ede91dedf06572e4faf53266367ec4cc34 | |
parent | WebappConfig/content.py: Adds use of create_md5() function. (diff) | |
download | webapp-config-58a7dbcc8faf452f4e0355dbff42a2882a8b0e2b.tar.gz webapp-config-58a7dbcc8faf452f4e0355dbff42a2882a8b0e2b.tar.bz2 webapp-config-58a7dbcc8faf452f4e0355dbff42a2882a8b0e2b.zip |
WebappConfig/db.py: Converts dict_keys into a list to allow sorting.
When appending the --list-installs flag to webapp-config and using
python3.2+ you will receive an error declaring: "AttributeError:
'dict_keys' object has no attribute 'sort'". By setting keys as a list
you are then able to list your webapp-config installs without getting
any errors. This has also been tested on python2.7.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r-- | WebappConfig/db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebappConfig/db.py b/WebappConfig/db.py index 78597bd..8db20fc 100644 --- a/WebappConfig/db.py +++ b/WebappConfig/db.py @@ -441,7 +441,7 @@ class WebappDB(AppHierarchy): if not loc and self.__v: OUT.die('No virtual installs found!') - keys = loc.keys() + keys = list(loc.keys()) keys.sort() for j in keys: |