From 24054b4bfc5acfbe55a70df26b817b4af5fede48 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Wed, 13 Oct 2021 01:07:32 -0600 Subject: [PATCH] Styleguide --- projects/cram/src/python/cram/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/cram/src/python/cram/__main__.py b/projects/cram/src/python/cram/__main__.py index a6584bc..9dd9684 100644 --- a/projects/cram/src/python/cram/__main__.py +++ b/projects/cram/src/python/cram/__main__.py @@ -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])