Styleguide
This commit is contained in:
parent
684409cd16
commit
a17f7e497b
1 changed files with 3 additions and 1 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in a new issue