Skip to content

Commit 06c70d2

Browse files
committed
concise
1 parent d229216 commit 06c70d2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

irods/data_object.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ def __init__(self, manager, parent=None, results=None, replica_sort_function=Non
6161
self.manager = manager
6262
if parent and results:
6363
self.collection = parent
64-
if results:
65-
results = sorted(results, key=(replica_sort_function or _DEFAULT_SORT_KEY_FN))
64+
results = sorted(results, key=(replica_sort_function or _DEFAULT_SORT_KEY_FN))
6665
for attr, value in DataObject.__dict__.items():
6766
if not attr.startswith("_"):
6867
try:
@@ -72,7 +71,7 @@ def __init__(self, manager, parent=None, results=None, replica_sort_function=Non
7271
pass
7372
self.path = self.collection.path + "/" + self.name
7473

75-
# The status quo before iRODS 5
74+
# Copy pre-iRODS 5 fields
7675

7776
replica_args = [
7877
(

0 commit comments

Comments
 (0)