Skip to content

Commit c663554

Browse files
committed
docstrings not needed for each sort key func (This would be overkill.)
1 parent a0a2eb4 commit c663554

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

irods/data_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ class _repl_status(enum.Enum): # noqa: N801
7070
_REFERENCE_DATETIME = datetime.fromtimestamp(0, timezone.utc)
7171

7272

73+
# Key functions to dictate how replica row results will be sorted within an iRODSDataObject.
74+
7375
def REPLICA_NUMBER_SORT_KEY_FN(row): # noqa: N802
74-
"""Key function to sort replica results on replica number."""
7576
return row[DataObject.replica_number]
7677

7778

7879
def REPLICA_FITNESS_SORT_KEY_FN(row): # noqa: N802
79-
"""Key function to sort replica results first on replica quality, then on age of modification timestamp ."""
8080
repl_status = int(row[DataObject.replica_status])
8181

8282
repl_status_rank = _REPL_STATUSES.index(repl_status) if _REPL_STATUSES.count(repl_status) else sys.maxsize

0 commit comments

Comments
 (0)