From 0de91f9313a4c76445ada1617fff69d97fe12217 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Wed, 6 Jan 2021 11:27:59 +0100 Subject: Make API more pythonic be replacing C-like byte arrays with str. Abstracted utf-8 encoding/decoding. --- testsuite/pyunit/libghdl/Initialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/pyunit/libghdl/Initialize.py b/testsuite/pyunit/libghdl/Initialize.py index 15767edc7..0e172f1b8 100644 --- a/testsuite/pyunit/libghdl/Initialize.py +++ b/testsuite/pyunit/libghdl/Initialize.py @@ -19,7 +19,7 @@ class Instantiate(TestCase): @staticmethod def getIdentifier(node): """Return the Python string from node :obj:`node` identifier""" - return name_table.Get_Name_Ptr(nodes.Get_Identifier(node)).decode("utf-8") + return name_table.Get_Name_Ptr(nodes.Get_Identifier(node)) def test_InitializeGHDL(self) -> None: """Initialization: set options and then load libaries""" -- cgit v1.2.3