mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-19 16:20:52 +00:00
another docstring
This commit is contained in:
parent
c1c0b60862
commit
72c18579e2
@ -267,6 +267,13 @@ def merge_config(
|
||||
left: Optional[ListenerConfig],
|
||||
right: Optional[ListenerConfig],
|
||||
) -> Optional[ListenerConfig]:
|
||||
"""
|
||||
Merge two listener configurations into one configuration representing
|
||||
both of them.
|
||||
|
||||
If either is ``None`` then the result is ``None``. This supports the
|
||||
"disable listeners" functionality.
|
||||
"""
|
||||
if left is None or right is None:
|
||||
return None
|
||||
return ListenerConfig(
|
||||
|
Loading…
x
Reference in New Issue
Block a user