소스 검색

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: