Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
3236676e
Commit
3236676e
authored
5 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SW-658
: python3 adaptation: use cmp_to_key for new 'sorted' api
parent
aae78b69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/DataManagement/StorageQueryService/cache.py
+2
-1
2 additions, 1 deletion
SAS/DataManagement/StorageQueryService/cache.py
with
2 additions
and
1 deletion
SAS/DataManagement/StorageQueryService/cache.py
+
2
−
1
View file @
3236676e
...
...
@@ -11,6 +11,7 @@ import ast
from
optparse
import
OptionParser
from
threading
import
Thread
,
RLock
import
os.path
from
functools
import
cmp_to_key
from
lofar.messaging
import
EventMessage
,
ToBus
from
lofar.common.util
import
humanreadablesize
...
...
@@ -291,7 +292,7 @@ class CacheManager:
return
1
return
0
updateable_entries
=
sorted
(
updateable_entries
,
cmp
=
compareFunc
)
updateable_entries
=
sorted
(
updateable_entries
,
key
=
cmp_to_key
(
compareFunc
)
)
cacheUpdateStart
=
datetime
.
datetime
.
utcnow
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment