From 8d1b91917d7deca2c72fcbd7f85cd2dabcfeb1a8 Mon Sep 17 00:00:00 2001 From: Staf Verhaegen Date: Sat, 9 Nov 2019 17:10:36 +0100 Subject: [PATCH] hdl.rec: make Record(name=) keyword-only. Everywhere else, the name argument is already keyword-only, so change it here too for consistency. --- nmigen/hdl/rec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmigen/hdl/rec.py b/nmigen/hdl/rec.py index d6c4686..58e1e85 100644 --- a/nmigen/hdl/rec.py +++ b/nmigen/hdl/rec.py @@ -107,9 +107,9 @@ class Record(Value): fields[field_name] = Signal.like(field, name=concat(new_name, field_name), src_loc_at=1 + src_loc_at) - return cls(other.layout, new_name, fields=fields, src_loc_at=1) + return cls(other.layout, name=new_name, fields=fields, src_loc_at=1) - def __init__(self, layout, name=None, *, fields=None, src_loc_at=0): + def __init__(self, layout, *, name=None, fields=None, src_loc_at=0): if name is None: name = tracer.get_var_name(depth=2 + src_loc_at, default=None) -- 2.30.2