# HG changeset patch # User Paul Boddie # Date 1716311072 -7200 # Node ID 8b2774ab25007f0fd104e99168a2fe6b24652297 # Parent 85fda4fc3acaf7633957de42909028c201aa64b2# Parent 101519d4e2c21f02298c22fa0ed4313f33f80dbb Merged changes from the default branch. diff -r 85fda4fc3aca -r 8b2774ab2500 lib/__builtins__/span.py --- a/lib/__builtins__/span.py Tue May 21 12:59:53 2024 +0200 +++ b/lib/__builtins__/span.py Tue May 21 19:04:32 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):