Explorar o código

cleanup: do not copy list that is not being modified

Joseph Brandenburg hai 6 meses
pai
achega
985d5b4d53
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utilities.py

+ 1 - 1
utilities.py

@@ -380,7 +380,7 @@ def get_all_dependencies(nc):
     while (len(check_nodes) > 0):
         node = check_nodes.pop()
         nodes_checked.add (node)
-        connected_nodes = node.hierarchy_dependencies.copy()
+        connected_nodes = node.hierarchy_dependencies
         for new_node in connected_nodes:
             if new_node in nodes:
                 continue