1.1 --- a/lib/__builtins__/span.py Sat Jun 08 17:54:53 2019 +0200
1.2 +++ b/lib/__builtins__/span.py Sat Jun 08 17:55:32 2019 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Span-related objects.
1.6
1.7 -Copyright (C) 2015, 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016, 2017, 2018, 2019 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 @@ -101,7 +101,7 @@
1.13 "Return the next item or raise a StopIteration exception."
1.14
1.15 if not self.count:
1.16 - raise StopIteration
1.17 + raise StopIteration, self
1.18
1.19 current = self.current
1.20 self.current = self.current.__add__(self.step)