From 8789de969e6673b195cbb28a692cc3fbbaa806e1 Mon Sep 17 00:00:00 2001 From: m-kru Date: Sat, 15 Aug 2020 04:17:53 +0200 Subject: 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. --- python/libghdl/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/libghdl') 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 -- cgit v1.2.3