1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 07:29:01 +01:00

Tidy up key test

This commit is contained in:
Graham Eades 2020-03-03 11:43:50 +00:00
parent 1f38736b37
commit ad13fffb07

View File

@ -288,7 +288,7 @@ class FrontendBuilder(object):
def bookmarklet (self):
cacheKey = 'bookmarklet'
# if not self.processedFiles.has_key(cacheKey):
if 'bookmarklet' not in self.processedFiles:
if cacheKey not in self.processedFiles:
result = 'bookmarklet="' + self.packBookmarklet(self.loadFilesContent('js', ['Bookmarklet.js']), "regular") + '";bookmarklet_ie="' + self.packBookmarklet(self.loadFilesContent('js', ['Bookmarklet_IE.js']), "IE") + '";'
self.processedFiles[cacheKey] = result
else:
@ -318,7 +318,7 @@ class FrontendBuilder(object):
def assembleCopyrightHeader (self):
processedFile = 'copyright'
# if not self.processedFiles.has_key(processedFile):
if 'copyright' not in self.processedFiles:
if processedFile not in self.processedFiles:
#self.log("assembling copyright header")
copyrightValues = self.settings['copyright.values']
license = self.loadFilesContent('../../properties', ['license.txt'])