# HG changeset patch # User Paul Boddie # Date 1716311060 -7200 # Node ID 101519d4e2c21f02298c22fa0ed4313f33f80dbb # Parent 3668fc79dbdf078054fa984c5759f32abaf33b42 Employ generic operations instead of operator method calls. diff -r 3668fc79dbdf -r 101519d4e2c2 lib/__builtins__/span.py --- a/lib/__builtins__/span.py Tue May 21 12:59:31 2024 +0200 +++ b/lib/__builtins__/span.py Tue May 21 19:04:20 2024 +0200 @@ -3,7 +3,7 @@ """ Span-related objects. -Copyright (C) 2015, 2016, 2017, 2018, 2019 Paul Boddie +Copyright (C) 2015-2019, 2024 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -104,8 +104,8 @@ raise StopIteration, self current = self.current - self.current = self.current.__add__(self.step) - self.count = self.count.__sub__(1) + self.current += self.step + self.count -= 1 return current def range(start_or_end, end=None, step=1):