aboutsummaryrefslogtreecommitdiffstats
path: root/icebox/icebox.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-12-04 12:10:11 +0100
committerClifford Wolf <clifford@clifford.at>2015-12-04 12:10:11 +0100
commit5e1dc788c557e52154e7dd610edc4673094a7ba2 (patch)
treee5fa8b11b54ab9aeda4e8e252208cb0825c846ad /icebox/icebox.py
parent9c9983cff8d5ff4c410b6f4fcd1c78b5f9e1fd6b (diff)
downloadicestorm-5e1dc788c557e52154e7dd610edc4673094a7ba2.tar.gz
icestorm-5e1dc788c557e52154e7dd610edc4673094a7ba2.tar.bz2
icestorm-5e1dc788c557e52154e7dd610edc4673094a7ba2.zip
Python3 fixes
Diffstat (limited to 'icebox/icebox.py')
-rw-r--r--icebox/icebox.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/icebox/icebox.py b/icebox/icebox.py
index a6f3111..398bfe8 100644
--- a/icebox/icebox.py
+++ b/icebox/icebox.py
@@ -940,10 +940,8 @@ def get_carry_bit(tile):
def get_negclk_bit(tile):
return tile[0][0]
-def cmp_netnames(a, b):
- a = re.sub(r"\d+", lambda m: "%09d" % int(m.group(0)), a)
- b = re.sub(r"\d+", lambda m: "%09d" % int(m.group(0)), b)
- return cmp(a, b)
+def key_netname(netname):
+ return re.sub(r"\d+", lambda m: "%09d" % int(m.group(0)), netname)
def run_checks_neigh():
print("Running consistency checks on neighbour finder..")