diff --git a/pep-0380.txt b/pep-0380.txt index 9470b8b10..597bfad03 100644 --- a/pep-0380.txt +++ b/pep-0380.txt @@ -182,14 +182,14 @@ except that, as currently, the exception cannot be caught by 3. The StopIteration exception behaves as though defined thusly:: - class StopIteration(Exception): + class StopIteration(Exception): - def __init__(self, *args): - if len(args) > 0: - self.value = args[0] - else: - self.value = None - Exception.__init__(self, *args) + def __init__(self, *args): + if len(args) > 0: + self.value = args[0] + else: + self.value = None + Exception.__init__(self, *args) Rationale