From 8f854fe71bbf62833342b6288808fd26f33e8f18 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 20 Dec 2022 07:34:17 +0100 Subject: pyGHDL: reformatting --- pyGHDL/libghdl/vhdl/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyGHDL') 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") -- cgit v1.2.3