1.1 --- a/lib/__builtins__/span.py Tue May 21 12:59:53 2024 +0200
1.2 +++ b/lib/__builtins__/span.py Tue May 21 19:04:32 2024 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Span-related objects.
1.6
1.7 -Copyright (C) 2015, 2016, 2017, 2018, 2019 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015-2019, 2024 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -104,8 +104,8 @@
1.13 raise StopIteration, self
1.14
1.15 current = self.current
1.16 - self.current = self.current.__add__(self.step)
1.17 - self.count = self.count.__sub__(1)
1.18 + self.current += self.step
1.19 + self.count -= 1
1.20 return current
1.21
1.22 def range(start_or_end, end=None, step=1):