diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-01-06 11:27:59 +0100 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-01-10 10:14:16 +0100 |
commit | 0de91f9313a4c76445ada1617fff69d97fe12217 (patch) | |
tree | 1e5074682a4996db4d54ac9b6c92e8745f05d753 /testsuite | |
parent | 015adfc69e63e46c7823524032636faa99106c1f (diff) | |
download | ghdl-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.py | 2 |
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""" |