aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-04-29 17:27:41 +0200
committerTristan Gingold <tgingold@free.fr>2023-04-29 17:27:41 +0200
commita3b1311bef4f9cb66d7e8dc234a0c99f8e923145 (patch)
treecf63094ea304e23aaf5cc1dcab33114578ee458b
parent8173ef7b92df3ba7107dfb2ee15c226d47f4d2f6 (diff)
downloadghdl-a3b1311bef4f9cb66d7e8dc234a0c99f8e923145.tar.gz
ghdl-a3b1311bef4f9cb66d7e8dc234a0c99f8e923145.tar.bz2
ghdl-a3b1311bef4f9cb66d7e8dc234a0c99f8e923145.zip
pyGHDL: reformatting
-rw-r--r--pyGHDL/lsp/document.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyGHDL/lsp/document.py b/pyGHDL/lsp/document.py
index cc8ca2226..487e6d2b5 100644
--- a/pyGHDL/lsp/document.py
+++ b/pyGHDL/lsp/document.py
@@ -132,7 +132,7 @@ class Document(object):
def add_to_library(tree, library):
# Set the target library
if library is None:
- library = 'work'
+ library = "work"
libraries.Work_Library_Name.value = name_table.Get_Identifier(library)
libraries.Load_Work_Library(False)
# Detach the chain of units.
@@ -160,8 +160,7 @@ class Document(object):
if tree == nodes.Null_Iir:
return
self._tree = Document.add_to_library(tree, self.library)
- log.debug("add_to_library(%u, '%s') -> %u",
- tree, self.library, self._tree)
+ log.debug("add_to_library(%u, '%s') -> %u", tree, self.library, self._tree)
if self._tree == nodes.Null_Iir:
return
nodes.Set_Design_File_Source(self._tree, self._fe)