Skip to content

Commit 1cb2de7

Browse files
committed
Add an empty line before every C function.
1 parent 0424f28 commit 1cb2de7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ustubby/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class ReturnContainer(BaseContainer):
292292

293293
def stub_function(f):
294294
# Function implementation
295-
stub_ret = [function_comments(f), function_init(f"{f.__module__}_{f.__name__}")]
295+
stub_ret = ["", function_comments(f), function_init(f"{f.__module__}_{f.__name__}")]
296296
sig = inspect.signature(f)
297297
stub_ret[-1] += function_params(sig.parameters)
298298
stub_ret.extend(parse_params(f, sig.parameters))
@@ -414,11 +414,10 @@ def parse_params(f, params):
414414

415415

416416
def headers():
417-
return """// Include required definitions first.
417+
return '''// Include required definitions first.
418418
#include "py/obj.h"
419419
#include "py/runtime.h"
420-
#include "py/builtin.h"
421-
"""
420+
#include "py/builtin.h"'''
422421

423422

424423
def function_comments(f):

0 commit comments

Comments
 (0)