We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de2b9b5 commit c3b8bb6Copy full SHA for c3b8bb6
1 file changed
test/helpers.py
@@ -43,7 +43,7 @@ def namespace_name(node):
43
for name in sorted(namespace.nonlocal_names):
44
s += indent + ' - nonlocal ' + name + '\n'
45
46
- for binding in sorted(namespace.bindings, key=lambda b: b.name):
+ for binding in sorted(namespace.bindings, key=lambda b: b.name or str(b.value)):
47
s += indent + ' - ' + repr(binding) + '\n'
48
49
for child in iter_child_namespaces(namespace):
0 commit comments