From fff31ce25d354bf9c62db982f912266c5ee0ab59 Mon Sep 17 00:00:00 2001 From: Chase Pettet Date: Thu, 31 Aug 2023 13:32:56 -0500 Subject: [PATCH] Update show_struct.py for None in values list Fix condition where a value in dict_key() is "None" while other values in the list are strings. --- show_struct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show_struct.py b/show_struct.py index 701d1af..3661788 100755 --- a/show_struct.py +++ b/show_struct.py @@ -42,7 +42,7 @@ def outline(self, data): for path in sorted(self.paths): ret.append({ 'path': path, - 'values': sorted(self.values_for_path[path].keys()) + 'values': sorted(self.values_for_path[path].keys(), key=lambda x: x is not None) }) return ret