aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-01-06 11:27:59 +0100
committertgingold <tgingold@users.noreply.github.com>2021-01-10 10:14:16 +0100
commit0de91f9313a4c76445ada1617fff69d97fe12217 (patch)
tree1e5074682a4996db4d54ac9b6c92e8745f05d753 /testsuite
parent015adfc69e63e46c7823524032636faa99106c1f (diff)
downloadghdl-0de91f9313a4c76445ada1617fff69d97fe12217.tar.gz
ghdl-0de91f9313a4c76445ada1617fff69d97fe12217.tar.bz2
ghdl-0de91f9313a4c76445ada1617fff69d97fe12217.zip
Make API more pythonic be replacing C-like byte arrays with str. Abstracted utf-8 encoding/decoding.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/pyunit/libghdl/Initialize.py2
1 files changed, 1 insertions, 1 deletions
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"""