diff options
author | 2014-04-26 15:29:23 -0400 | |
---|---|---|
committer | 2015-06-19 15:44:08 -0400 | |
commit | 2909c15aff1eb419a7d705067864ac6b90ecf097 (patch) | |
tree | 49a0385518a880e5d518f349d7e8d6bbfa890518 /WebappConfig/dotconfig.py | |
parent | sbin/webapp-cleaner: alters source to /lib/gentoo/functions.sh (diff) | |
download | webapp-config-2909c15aff1eb419a7d705067864ac6b90ecf097.tar.gz webapp-config-2909c15aff1eb419a7d705067864ac6b90ecf097.tar.bz2 webapp-config-2909c15aff1eb419a7d705067864ac6b90ecf097.zip |
Adds python3.x compatibility to codebase.
Although most of the codebase already has python3.x compatibility
when running 2to3 more minor changes where found. This commit
includes the changes found when running 2to3 on webapp-config's
codebase.
Diffstat (limited to 'WebappConfig/dotconfig.py')
-rw-r--r-- | WebappConfig/dotconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebappConfig/dotconfig.py b/WebappConfig/dotconfig.py index cab0392..948fa90 100644 --- a/WebappConfig/dotconfig.py +++ b/WebappConfig/dotconfig.py @@ -115,7 +115,7 @@ class DotConfig: 'WEB_INSTALLDIR'] def __getitem__(self, key): - if key in self.__data.keys(): + if key in list(self.__data.keys()): return self.__data[key] # this key didn't exist in old versions, but new versions # expect it. fix bug 355295 @@ -180,8 +180,8 @@ class DotConfig: OUT.debug('Trying to retrieve package name', 6) - if 'WEB_PN' in self.__data.keys() and 'WEB_PVR' in self.__data.keys(): - if 'WEB_CATEGORY' in self.__data.keys(): + if 'WEB_PN' in list(self.__data.keys()) and 'WEB_PVR' in list(self.__data.keys()): + if 'WEB_CATEGORY' in list(self.__data.keys()): return self.__data['WEB_CATEGORY'] + '/' + \ self.__data['WEB_PN'] + '-' + self.__data['WEB_PVR'] else: |