aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-06-22 12:26:43 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-06-22 18:51:02 +0200
commit51e9764f04da876993a80f6f09910e019eb84446 (patch)
treee58928ecfbafb74bf33e8873423e7ed5874422c2 /pyGHDL/dom
parent25a3580831170f8a0acd0a79aca2c94ea4652338 (diff)
downloadghdl-51e9764f04da876993a80f6f09910e019eb84446.tar.gz
ghdl-51e9764f04da876993a80f6f09910e019eb84446.tar.bz2
ghdl-51e9764f04da876993a80f6f09910e019eb84446.zip
fix issues reported by Codacy
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r--pyGHDL/dom/NonStandard.py5
-rw-r--r--pyGHDL/dom/_Utils.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py
index 9010e392b..4b35e7da2 100644
--- a/pyGHDL/dom/NonStandard.py
+++ b/pyGHDL/dom/NonStandard.py
@@ -80,8 +80,9 @@ class Design(VHDLModel_Design):
self.__ghdl_init()
def __ghdl_init(self):
- """Initialization: set options and then load libraries."""
-
+ """
+ Initialization: set options and then load libraries.
+ """
# Initialize libghdl
libghdl_finalize()
libghdl_initialize()
diff --git a/pyGHDL/dom/_Utils.py b/pyGHDL/dom/_Utils.py
index 38a85c0c3..2142490e3 100644
--- a/pyGHDL/dom/_Utils.py
+++ b/pyGHDL/dom/_Utils.py
@@ -59,7 +59,7 @@ def GetIirKindOfNode(node: Iir) -> nodes.Iir_Kind:
@export
def GetNameOfNode(node: Iir) -> str:
- """Return the python string from node :obj:`node` identifier"""
+ """Return the python string from node :obj:`node` identifier."""
identifier = nodes.Get_Identifier(node)
return name_table.Get_Name_Ptr(identifier)