(filename)
| 106 | # Hash db |
| 107 | # |
| 108 | def load_hashes(filename): |
| 109 | # Return { filename : (sha256 of input, sha256 of output) } |
| 110 | if os.path.isfile(filename): |
| 111 | hashes = {} |
| 112 | with open(filename) as f: |
| 113 | for line in f: |
| 114 | filename, inhash, outhash = line.split() |
| 115 | hashes[filename] = (inhash, outhash) |
| 116 | else: |
| 117 | hashes = {} |
| 118 | return hashes |
| 119 | |
| 120 | def save_hashes(hash_db, filename): |
| 121 | with open(filename, 'w') as f: |
no test coverage detected