some code refactoring and beautification

This commit is contained in:
Miroslav Stampar
2010-11-02 09:06:38 +00:00
parent 13e93f564a
commit 5269cb8c08
4 changed files with 13 additions and 10 deletions

View File

@@ -1245,7 +1245,7 @@ def parseXmlFile(xmlFile, handler):
def readCachedFileContent(filename, mode='rb'):
if filename not in kb.cache.content:
kb.data.cacheLock.acquire()
kb.locks.cacheLock.acquire()
if filename not in kb.cache.content:
checkFile(filename)
@@ -1254,7 +1254,7 @@ def readCachedFileContent(filename, mode='rb'):
kb.cache.content[filename] = content
xfile.close()
kb.data.cacheLock.release()
kb.locks.cacheLock.release()
return kb.cache.content[filename]