aboutsummaryrefslogtreecommitdiffstats
path: root/python/vhdl_langserver/workspace.py
diff options
context:
space:
mode:
authorm-kru <mkru@protonmail.com>2020-08-15 04:17:53 +0200
committerGitHub <noreply@github.com>2020-08-15 04:17:53 +0200
commit8789de969e6673b195cbb28a692cc3fbbaa806e1 (patch)
tree51bf27abf5c553944543be5650ee2632a7b4153f /python/vhdl_langserver/workspace.py
parent68b879eb404e12a6414ef56e697b6dc99618d457 (diff)
downloadghdl-8789de969e6673b195cbb28a692cc3fbbaa806e1.tar.gz
ghdl-8789de969e6673b195cbb28a692cc3fbbaa806e1.tar.bz2
ghdl-8789de969e6673b195cbb28a692cc3fbbaa806e1.zip
py: adjust blank lines to PEP 8 for vhdl_langserver (#1434)
Why? 1. Conform to PEP 8. 2. Easier to read. 3. Make tools, such as PyCharm, not complain.
Diffstat (limited to 'python/vhdl_langserver/workspace.py')
-rw-r--r--python/vhdl_langserver/workspace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vhdl_langserver/workspace.py b/python/vhdl_langserver/workspace.py
index baf18f0ce..a2cf9db4b 100644
--- a/python/vhdl_langserver/workspace.py
+++ b/python/vhdl_langserver/workspace.py
@@ -21,12 +21,14 @@ from . import document, symbols
log = logging.getLogger(__name__)
+
class ProjectError(Exception):
"Exception raised in case of unrecoverable error in the project file."
def __init__(self, msg):
super().__init__()
self.msg = msg
+
class Workspace(object):
def __init__(self, root_uri, server):
self._root_uri = root_uri
@@ -193,7 +195,6 @@ class Workspace(object):
self._server.show_message(lsp.MessageType.Error,
"error in project file: {}".format(e.msg))
-
def read_files_from_project(self):
try:
files = self._prj.get('files', [])
@@ -431,7 +432,6 @@ class Workspace(object):
'generics': create_interfaces(nodes.Get_Generic_Chain(ent)),
'ports': create_interfaces(nodes.Get_Port_Chain(ent))}
-
def compute_anti_dependences(self):
"""Return a dictionnary of anti dependencies for design unit"""
res = {}