# HG changeset patch # User Paul Boddie # Date 1716312032 -7200 # Node ID 8bcbea777be94d312d9bf9d1a2ff0ff3a2b6fcec # Parent e6010ccae0c0521094eb1803921305ceec028b6d# Parent 8b2774ab25007f0fd104e99168a2fe6b24652297 Merged changes from the trailing-data branch. diff -r e6010ccae0c0 -r 8bcbea777be9 lib/__builtins__/span.py --- a/lib/__builtins__/span.py Tue May 21 17:02:10 2024 +0200 +++ b/lib/__builtins__/span.py Tue May 21 19:20: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):