mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-36793: Remove unneeded __str__ definitions. (GH-13081)
Classes that define __str__ the same as __repr__ can just inherit it from object.
This commit is contained in:
parent
9646630895
commit
96aeaec647
18 changed files with 25 additions and 33 deletions
|
|
@ -262,8 +262,6 @@ class dispatcher:
|
|||
status.append(repr(self.addr))
|
||||
return '<%s at %#x>' % (' '.join(status), id(self))
|
||||
|
||||
__str__ = __repr__
|
||||
|
||||
def add_channel(self, map=None):
|
||||
#self.log_info('adding channel %s' % self)
|
||||
if map is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue