Преглед на файлове

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

Yentl Van Tendeloo преди 8 години
родител
ревизия
da3fb1a192
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  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: