aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL')
-rw-r--r--pyGHDL/libghdl/vhdl/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyGHDL/libghdl/vhdl/utils.py b/pyGHDL/libghdl/vhdl/utils.py
index 4dd82e5ff..2fd7c4dbb 100644
--- a/pyGHDL/libghdl/vhdl/utils.py
+++ b/pyGHDL/libghdl/vhdl/utils.py
@@ -51,6 +51,7 @@ def Get_Source_Identifier(Decl: Iir) -> NameId:
"""
return 0
+
@export
def Get_Source_Identifier_Str(n: Iir) -> str:
loc = nodes.Get_Location(n)
@@ -58,4 +59,4 @@ def Get_Source_Identifier_Str(n: Iir) -> str:
sfe = files_map.Location_To_File(loc)
pos = files_map.Location_File_To_Pos(loc, sfe)
buf = files_map.Get_File_Buffer(sfe)
- return buf[pos:pos+l].decode("utf-8")
+ return buf[pos : pos + l].decode("utf-8")