From 6ce933a32fda56860bc9ca05d2553255a820a635 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 16 Oct 2007 22:51:18 +0000 Subject: Formatting svn path=/scripts/rpki/cms.py; revision=1163 --- scripts/rpki/resource_set.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/rpki/resource_set.py') diff --git a/scripts/rpki/resource_set.py b/scripts/rpki/resource_set.py index d176e70a..3436398c 100644 --- a/scripts/rpki/resource_set.py +++ b/scripts/rpki/resource_set.py @@ -103,7 +103,8 @@ def _rsplit(rset, that): """Split a resource range into two resource ranges.""" this = rset.pop(0) cell_type = type(this.min) - assert type(this) is type(that) and type(this.max) is cell_type and type(that.min) is cell_type and type(that.max) is cell_type + assert type(this) is type(that) and type(this.max) is cell_type and \ + type(that.min) is cell_type and type(that.max) is cell_type if this.min < that.min: rset.insert(0, type(this)(this.min, cell_type(that.min - 1))) rset.insert(1, type(this)(that.min, this.max)) -- cgit v1.2.3