diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-17 23:12:36 +0200 |
---|---|---|
committer | Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> | 2021-06-17 22:53:27 +0100 |
commit | 0c726ac36be1ad1cba24eb7eff476b9a32e643fb (patch) | |
tree | 524d81d4df412cca136b766305506574b34bf15e /pyGHDL/libghdl/files_map.py | |
parent | e5891f3900f5e58df37d32c2c18a0f339c094cf4 (diff) | |
download | ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.tar.gz ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.tar.bz2 ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.zip |
Black found more files - strange.
Executed black to make code unreadable.
(cherry picked from commit 1b34c2368428b1ec295073ee47d201ac1def35f6)
Diffstat (limited to 'pyGHDL/libghdl/files_map.py')
-rw-r--r-- | pyGHDL/libghdl/files_map.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pyGHDL/libghdl/files_map.py b/pyGHDL/libghdl/files_map.py index 7e2ae0abc..ceda483c5 100644 --- a/pyGHDL/libghdl/files_map.py +++ b/pyGHDL/libghdl/files_map.py @@ -87,7 +87,9 @@ def Location_File_To_Line(Location: Location_Type, File: SourceFileEntry) -> int @export @BindToLibGHDL("files_map__location_file_line_to_offset") -def Location_File_Line_To_Offset(Location: Location_Type, File: SourceFileEntry, Line: int) -> int: +def Location_File_Line_To_Offset( + Location: Location_Type, File: SourceFileEntry, Line: int +) -> int: """ Get the offset in :obj:`Line` of :obj:`Location`. @@ -100,7 +102,9 @@ def Location_File_Line_To_Offset(Location: Location_Type, File: SourceFileEntry, @export @BindToLibGHDL("files_map__location_file_line_to_col") -def Location_File_Line_To_Col(Location: Location_Type, File: SourceFileEntry, Line: int) -> int: +def Location_File_Line_To_Col( + Location: Location_Type, File: SourceFileEntry, Line: int +) -> int: """ Get logical column (with HT expanded) from :obj:`Location`, :obj:`File` and :obj:`Line`. @@ -219,7 +223,9 @@ def Read_Source_File(Directory: NameId, Name: NameId) -> SourceFileEntry: @export @BindToLibGHDL("files_map__reserve_source_file") -def Reserve_Source_File(Directory: NameId, Name: NameId, Length: int) -> SourceFileEntry: +def Reserve_Source_File( + Directory: NameId, Name: NameId, Length: int +) -> SourceFileEntry: """ Reserve an entry, but do not read any file. |