2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 07:02:15 +00:00

- Little bug where the memory cache was not being used

[SVN r19517]
This commit is contained in:
Bruno da Silva de Oliveira
2003-08-10 21:51:28 +00:00
parent da34e7f507
commit 568b62a8a4

View File

@@ -156,15 +156,14 @@ class CppParser:
def GetCache(self, header, interface, tail):
if self.cache_dir is None:
return None
key = (header, interface, tail)
# try memory cache first
if key in self.mem_cache:
return self.mem_cache[key]
# get the cache from the disk
if self.cache_dir is None:
return None
header = self.FindHeader(header)
cache_file = self.CacheFileName(interface)
if os.path.isfile(cache_file):