fhdl/tools: do not export resort_statements
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 17 Jul 2013 14:50:09 +0000 (16:50 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 17 Jul 2013 14:50:09 +0000 (16:50 +0200)
migen/fhdl/tools.py

index f2f572226eb310884afc3dca15ad4388179c84a1..48ed1a9544578b66b00111a3c0ebb1da77f11cd7 100644 (file)
@@ -48,7 +48,7 @@ def list_targets(node):
        lister.visit(node)
        return lister.output_list
 
-def resort_statements(ol):
+def _resort_statements(ol):
        return [statement for i, statement in
                        sorted(ol, key=lambda x: x[0])]
 
@@ -69,7 +69,7 @@ def group_by_targets(sl):
 
                groups.append(new_group)
 
-       return [(target, resort_statements(stmts))
+       return [(target, _resort_statements(stmts))
                for target, stmts in groups]
 
 def list_special_ios(f, ins, outs, inouts):