[Python-checkins] peps: Fixed call to super().__new__.
eric.smith
python-checkins at python.org
Thu Aug 27 16:47:29 CEST 2015
https://hg.python.org/peps/rev/c71667eea7f4
changeset: 5998:c71667eea7f4
user: Eric V. Smith <eric at trueblade.com>
date: Thu Aug 27 10:48:24 2015 -0400
summary:
Fixed call to super().__new__.
files:
pep-0501.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pep-0501.txt b/pep-0501.txt
--- a/pep-0501.txt
+++ b/pep-0501.txt
@@ -166,7 +166,7 @@
__slots__ = ("raw_template", "parsed_fields", "field_values")
def __new__(cls, raw_template, parsed_fields, field_values):
- self = super().__new__()
+ self = super().__new__(cls)
self.raw_template = raw_template
self.parsed_fields = parsed_fields
self.field_values = field_values
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list