diff options
author | Devan Franchini <twitch153@hotmail.com> | 2013-10-09 20:25:20 -0400 |
---|---|---|
committer | Devan Franchini <twitch153@hotmail.com> | 2013-10-09 20:25:20 -0400 |
commit | 547419993a5d73f103c2729745cc5f2f0dbe1d16 (patch) | |
tree | d4ef19e6949f537b936ff995270149f1755b6853 | |
parent | WebappConfig/content.py: returns value from create_md5 to prevent nulls. (diff) | |
download | webapp-config-547419993a5d73f103c2729745cc5f2f0dbe1d16.tar.gz webapp-config-547419993a5d73f103c2729745cc5f2f0dbe1d16.tar.bz2 webapp-config-547419993a5d73f103c2729745cc5f2f0dbe1d16.zip |
WebappConfig/db.py: Converts keys.packages.keys() into a list.
When webapp-cleaner -C <webapp> on python3.2+ an error will arise
which says that 'dict_keys' object has no attribute 'sort'. To fix
this issue we set the keys to a list. This allows the keys to be
properly sorted without error. Tested in python3.2 and python2.7.
-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 8db20fc..03449a3 100644 --- a/WebappConfig/db.py +++ b/WebappConfig/db.py @@ -673,7 +673,7 @@ class WebappSource(AppHierarchy): if not packages: OUT.die('No packages found!') - keys = packages.keys() + keys = list(packages.keys()) keys.sort() OUT.debug('Check for unused web applications', 7) |