commit | 96aeaec64738b730c719562125070a52ed570210 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Mon May 06 22:29:40 2019 +0300 |
committer | GitHub <noreply@github.com> | Mon May 06 22:29:40 2019 +0300 |
tree | d68994f93014d081e9a441e7bf7dfda3aaadd402 | |
parent | 964663089547ca110199e23867b46b07ff4be88c [diff] [blame] |
bpo-36793: Remove unneeded __str__ definitions. (GH-13081) Classes that define __str__ the same as __repr__ can just inherit it from object.
diff --git a/Objects/boolobject.c b/Objects/boolobject.c index b92fafe..508ea61 100644 --- a/Objects/boolobject.c +++ b/Objects/boolobject.c
@@ -147,7 +147,7 @@ 0, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ - bool_repr, /* tp_str */ + 0, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */