Styleguide

This commit is contained in:
Reid 'arrdem' McKenzie 2021-10-13 01:07:32 -06:00
parent 684409cd16
commit a17f7e497b

View file

@ -2,16 +2,17 @@
import argparse
from itertools import chain
import pickle
import logging
import os
from pathlib import Path
import pickle
import sys
from typing import NamedTuple
from toposort import toposort_flatten
from vfs import Vfs
log = logging.getLogger(__name__)
parser = argparse.ArgumentParser()
@ -149,6 +150,7 @@ def simplify(old_fs: Vfs, new_fs: Vfs) -> Vfs:
for txn in old_fs._log:
if txn[0] == "link" and txn not in new_fs._log:
new_fs.unlink(txn[2])
elif txn[0] == "mkdir" and txn not in new_fs.log:
new_fs.unlink(txn[1])