From cca4a4ce8f986a72deddc797a9cdf314ab07ab1f Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 13 Apr 2024 22:44:16 -0400 Subject: Cleanup --- rfc1982_serial_number.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rfc1982_serial_number.py') diff --git a/rfc1982_serial_number.py b/rfc1982_serial_number.py index bb9988c..7b9b845 100755 --- a/rfc1982_serial_number.py +++ b/rfc1982_serial_number.py @@ -19,15 +19,14 @@ class Serial: by the RFC. The default modulus is 2**32, you can change this by subclassing - the Serial class and overriding the class's modulus variable. The - modulus must be a power of two. + the Serial class and overriding the subclass's modulus variable. + The modulus must be a power of two. See RFC 1982 for discussion of the ways in which Serial numbers do not work like normal integers. In particular, note that there's a corner case in which one can have a pair of Serial numbers I1 and I2 where I1 is neither equal to, less than, nor greater than I2. This is deliberate and is not a bug in the code. See the RFC. - """ modulus = 2 ** 32 -- cgit v1.2.3