stop trying to read swap files
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 14 Aug 2020 19:43:08 +0000 (20:43 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 14 Aug 2020 19:43:08 +0000 (20:43 +0100)
src/soc/decoder/pseudo/pagereader.py

index 4097e69161fe8832df0b128f0604bb0d8b0dbde3..8583bf4b85a067b5c54df43c7e3ec8c180b5910a 100644 (file)
@@ -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