From c633188e24e35aeb540b89ab142efabef0801f13 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Wed, 6 Jan 2021 01:41:32 +0100 Subject: Adding types and docstrings to libghdl. --- testsuite/pyunit/libghdl/Initialize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite') diff --git a/testsuite/pyunit/libghdl/Initialize.py b/testsuite/pyunit/libghdl/Initialize.py index d6032b435..15767edc7 100644 --- a/testsuite/pyunit/libghdl/Initialize.py +++ b/testsuite/pyunit/libghdl/Initialize.py @@ -29,14 +29,14 @@ class Instantiate(TestCase): errorout_console.Install_Handler() # Set options. This must be done before analyze_init() - libghdl.set_option(b"--std=08") + libghdl.set_option("--std=08") # Finish initialization. This will load the standard package. if libghdl.analyze_init_status() != 0: self.fail("libghdl initialization error") # Load the file - file_id = name_table.Get_Identifier(str(self._filename).encode("utf_8")) + file_id = name_table.Get_Identifier(str(self._filename)) sfe = files_map.Read_Source_File(name_table.Null_Identifier, file_id) if sfe == files_map.No_Source_File_Entry: self.fail("Cannot read file '{!s}'".format(self._filename)) -- cgit v1.2.3