summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2014-04-26 15:29:23 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-06-19 15:44:08 -0400
commit2909c15aff1eb419a7d705067864ac6b90ecf097 (patch)
tree49a0385518a880e5d518f349d7e8d6bbfa890518 /WebappConfig/filetype.py
parentsbin/webapp-cleaner: alters source to /lib/gentoo/functions.sh (diff)
downloadwebapp-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/filetype.py')
-rw-r--r--WebappConfig/filetype.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebappConfig/filetype.py b/WebappConfig/filetype.py
index 3c5acbb..63d7e5f 100644
--- a/WebappConfig/filetype.py
+++ b/WebappConfig/filetype.py
@@ -137,7 +137,7 @@ class FileType:
for i in server_owned:
- if self.__fix(i) in self.__cache.keys():
+ if self.__fix(i) in list(self.__cache.keys()):
OUT.debug('Adding config-server-owned file', 8)
@@ -177,7 +177,7 @@ class FileType:
filename = self.__fix(filename)
# look for config-protected files in the cache
- if filename in self.__cache.keys():
+ if filename in list(self.__cache.keys()):
return self.__cache[filename]
# unspecified file (and thus virtual)
@@ -208,7 +208,7 @@ class FileType:
directory = self.__fix(directory)
# check the cache
- if directory in self.__cache.keys():
+ if directory in list(self.__cache.keys()):
return self.__cache[directory]
# unspecified directories are default-owned