def run_dos2unix_reread(fileName): """called during reformat_ntfs.py.""" if not dos2unix(fileName): return None value = ryw.pickle_load_raw_and_text(fileName, dos2unix=True) return value
def loadMeta(filename): """ loads metadata dictionary from filename""" try: #RYW: change to "rb" #f = open(filename, "rb") #meta = pickle.load(f) #f.close() meta = ryw.pickle_load_raw_and_text(filename) if not sanity_check(meta,filename): return None else: return meta except: print "Error loading metadata dictionary from META file %s\n" % (filename,)
def pickload(name): #RYW: changed to "rb" value = ryw.pickle_load_raw_and_text(name) return value