From 411e6ec1149e51a7cf1ecefa81a8d4a427f5c853 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 17 Jul 2013 16:50:09 +0200 Subject: [PATCH] fhdl/tools: do not export resort_statements --- migen/fhdl/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migen/fhdl/tools.py b/migen/fhdl/tools.py index f2f57222..48ed1a95 100644 --- a/migen/fhdl/tools.py +++ b/migen/fhdl/tools.py @@ -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): -- 2.30.2