aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-12-20 07:34:17 +0100
committerTristan Gingold <tgingold@free.fr>2022-12-20 07:34:17 +0100
commit8f854fe71bbf62833342b6288808fd26f33e8f18 (patch)
tree435b4ba3a366396011c02e7ed9ed393f59324709 /pyGHDL/libghdl
parentc8c2832177c69a1cc65b9521b07843108ea8ef4e (diff)
downloadghdl-8f854fe71bbf62833342b6288808fd26f33e8f18.tar.gz
ghdl-8f854fe71bbf62833342b6288808fd26f33e8f18.tar.bz2
ghdl-8f854fe71bbf62833342b6288808fd26f33e8f18.zip
pyGHDL: reformatting
Diffstat (limited to 'pyGHDL/libghdl')
-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")