diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2019-07-28 02:16:11 +0200 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-02-03 23:12:56 -0800 |
commit | c2500773476ab34fc6db64e1b7224aa9d171fa98 (patch) | |
tree | 6935a5be7db706f85d90225e4fd468048395a413 /grc/core/utils/expr_utils.py | |
parent | 9254dd459debc1464f4c544b737d1aecd5b39bca (diff) |
grc: Fix failing expr_utils test
Caused by switch from Python 2 to 3: https://docs.python.org/3/whatsnew/3.0.html#ordering-comparisons
Diffstat (limited to 'grc/core/utils/expr_utils.py')
-rw-r--r-- | grc/core/utils/expr_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/utils/expr_utils.py b/grc/core/utils/expr_utils.py index d4c8a1eb29..e741802218 100644 --- a/grc/core/utils/expr_utils.py +++ b/grc/core/utils/expr_utils.py @@ -81,7 +81,7 @@ def sort_objects2(objects, id_getter, expr_getter, check_circular=True): def dependent_ids(obj): deps = dependencies(expr_getter(obj)) - return [id_ if id_ in deps else None for id_ in known_ids] + return [id_ if id_ in deps else '' for id_ in known_ids] objects = sorted(objects, key=dependent_ids) |