formatting

This commit is contained in:
Fischer Moseley 2024-08-03 19:49:20 -07:00
parent c867e9f8e5
commit cd91e7d708
2 changed files with 4 additions and 3 deletions

View File

@ -33,7 +33,9 @@ class Manta(Elaboratable):
# Load config from either YAML or JSON # Load config from either YAML or JSON
extension = config_path.split(".")[-1] extension = config_path.split(".")[-1]
if extension not in ["yaml", "yml", "json"]: if extension not in ["yaml", "yml", "json"]:
raise ValueError(f"Configuration file {config_path} has unrecognized file type.") raise ValueError(
f"Configuration file {config_path} has unrecognized file type."
)
with open(config_path, "r") as f: with open(config_path, "r") as f:
if extension in ["yaml", "yml"]: if extension in ["yaml", "yml"]:
@ -82,7 +84,6 @@ class Manta(Elaboratable):
return manta return manta
def elaborate(self, platform): def elaborate(self, platform):
m = Module() m = Module()