From a1140a2f2a4fad23b2f93ffea3a64f2cc9e9c329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Ob=C5=82onczek?= Date: Tue, 9 Jan 2024 02:03:25 +0100 Subject: [PATCH] Replace | dict operator with .update() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This improves compatibility with Python 3.8 Internal-tag: [#53526] Signed-off-by: Krzysztof Obłonczek --- fpga_topwrap/elaboratable_wrapper.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/fpga_topwrap/elaboratable_wrapper.py b/fpga_topwrap/elaboratable_wrapper.py index 8c49aa0e..fa43be02 100644 --- a/fpga_topwrap/elaboratable_wrapper.py +++ b/fpga_topwrap/elaboratable_wrapper.py @@ -43,10 +43,14 @@ def get_ports_hier(self) -> SignalMapping: """Maps elaboratable's Signature to a nested dictionary of WrapperPorts. See _gather_signature_ports for more details. """ - return self._gather_signature_ports(self.elaboratable.signature) | { - "clk": self.clk, - "rst": self.rst, - } + ports = self._gather_signature_ports(self.elaboratable.signature) + ports.update( + { + "clk": self.clk, + "rst": self.rst, + } + ) + return ports @lru_cache(maxsize=None) def _cached_wrapper(