Explorar o código

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

Yentl Van Tendeloo %!s(int64=8) %!d(string=hai) anos
pai
achega
da3fb1a192
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  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: