コード例 #1
0
 def save(self, metalist):
     """
     Dumps given metalist as pickle file
     """
     uid = str(uuid.uuid4())
     metalist_path = os.path.join(self.__pickle_path, times.get_sys_time() + '_' + uid + '.pickle')
     with open(metalist_path, 'wb') as file_desc:
         pickle.dump(metalist, file_desc)
コード例 #2
0
ファイル: cleaner.py プロジェクト: studentkittens/webarchive
 def __init__(self, path):
     self.__mdlist = []
     self.__path = path
     self.__commitTime = times.get_sys_time()
     self.__filtersys = filter.FilterSystem()