aboutsummaryrefslogtreecommitdiffstats
path: root/python/libghdl
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/libghdl
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/libghdl')
-rw-r--r--python/libghdl/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/libghdl/__init__.py b/python/libghdl/__init__.py
index 1258a5643..6ea3a4177 100644
--- a/python/libghdl/__init__.py
+++ b/python/libghdl/__init__.py
@@ -5,6 +5,7 @@ from os.path import dirname, join, exists, normpath
from shutil import which
from libghdl.version import __version__
+
def _to_char_p(arg):
return ctypes.c_char_p(arg), len(arg)
@@ -83,6 +84,7 @@ libghdl.libghdl__set_hooks_for_analysis()
libghdl.libghdl__set_exec_prefix(
*_to_char_p(dirname(dirname(_libghdl_path)).encode('utf-8')))
+
def set_option(opt):
"Set option OPT. Return true iff the option is known and handled"
return libghdl.libghdl__set_option(*_to_char_p(opt)) == 0