Przeglądaj źródła

Make compiler cache results as well (re-enable for now)

Yentl Van Tendeloo 8 lat temu
rodzic
commit
da3fb1a192
1 zmienionych plików z 0 dodań i 4 usunięć
  1. 0 4
      interface/HUTN/hutn_compiler/compiler.py

+ 0 - 4
interface/HUTN/hutn_compiler/compiler.py

@@ -24,8 +24,6 @@ def md5digest(filename):
     return hasher.hexdigest()
 
 def fetch_cached(filename, mode=None):
-    if mode is not None:
-        return None
     try:
         md5 = md5digest(filename)
         cache_folder = os.path.abspath("%s/../caches/" % (os.path.dirname(os.path.abspath(__file__))))
@@ -39,8 +37,6 @@ def fetch_cached(filename, mode=None):
         return None
 
 def make_cached(filename, data, mode=None):
-    if mode is not None:
-        return
     md5 = md5digest(filename)
     cache_folder = os.path.abspath("%s/../caches/" % (os.path.dirname(os.path.abspath(__file__))))
     if mode is None: