summaryrefslogtreecommitdiff
path: root/site_scons/libdeps.py
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons/libdeps.py')
-rw-r--r--site_scons/libdeps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/site_scons/libdeps.py b/site_scons/libdeps.py
index c20eb881d0a..153c551290b 100644
--- a/site_scons/libdeps.py
+++ b/site_scons/libdeps.py
@@ -68,7 +68,7 @@ def sorted_by_str(iterable):
across invocations of SCons. Since dependency order changes force rebuilds,
we use this sort to create stable dependency orders.
"""
- return sorted(iterable, cmp=lambda lhs, rhs: cmp(str(lhs), str(rhs)))
+ return sorted(iterable, key=str)
class DependencyCycleError(SCons.Errors.UserError):
"""Exception representing a cycle discovered in library dependencies."""