From 5e1dc788c557e52154e7dd610edc4673094a7ba2 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 4 Dec 2015 12:10:11 +0100 Subject: Python3 fixes --- icebox/icebox_maps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'icebox/icebox_maps.py') diff --git a/icebox/icebox_maps.py b/icebox/icebox_maps.py index 49f2638..c791bea 100755 --- a/icebox/icebox_maps.py +++ b/icebox/icebox_maps.py @@ -93,7 +93,7 @@ def print_db_nets(stmt, db, pos): if icebox.pos_has_net(pos[0], entry[2]): netnames.add(entry[2]) if icebox.pos_has_net(pos[0], entry[3]): netnames.add(entry[3]) last_prefix = "" - for net in sorted(netnames, icebox.cmp_netnames): + for net in sorted(netnames, key=icebox.key_netname): match = re.match(r"(.*?)(\d+)$", net) if match: if last_prefix == match.group(1): -- cgit v1.2.3