Initial Debugging Completed and Execution Successful

This commit is contained in:
2025-09-21 08:55:26 -04:00
parent 27e9112592
commit afb2c79a4c
7501 changed files with 1330669 additions and 18 deletions

View File

@@ -0,0 +1,20 @@
import functools
# from jaraco.functools 3.5
def pass_none(func):
"""
Wrap func so it's not called if its first param is None
>>> print_text = pass_none(print)
>>> print_text('text')
text
>>> print_text(None)
"""
@functools.wraps(func)
def wrapper(param, *args, **kwargs):
if param is not None:
return func(param, *args, **kwargs)
return wrapper