Enforce pre-summary newline in docstrings

This commit is contained in:
Dominik Muhs
2019-10-24 20:10:45 +02:00
parent 87ed98d7af
commit bafdd8512d
52 changed files with 349 additions and 199 deletions

View File

@ -52,8 +52,9 @@ class KBucket:
return node.peer_id_bytes not in self.nodes
def add_node(self, node):
"""Add a C{Node} to the C{KBucket}. Return True if successful, False
if the bucket is full.
"""
Add a C{Node} to the C{KBucket}. Return True if successful, False if
the bucket is full.
If the bucket is full, keep track of node in a replacement list,
per section 4.1 of the paper.