From cb46f175c462d81a9a4e68e75b6140221ce6921b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 14 Aug 2020 20:43:08 +0100 Subject: [PATCH] stop trying to read swap files --- src/soc/decoder/pseudo/pagereader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/decoder/pseudo/pagereader.py b/src/soc/decoder/pseudo/pagereader.py index 4097e691..8583bf4b 100644 --- a/src/soc/decoder/pseudo/pagereader.py +++ b/src/soc/decoder/pseudo/pagereader.py @@ -69,6 +69,8 @@ class ISA: self.page = {} for pth in os.listdir(os.path.join(get_isa_dir())): print(get_isa_dir(), pth) + if "swp" in pth: + continue assert pth.endswith(".mdwn"), "only %s in isa dir" % pth self.read_file(pth) continue -- 2.30.2