__str__ doesn't take any extra parameters.

This commit is contained in:
Benno Rice 2017-05-24 21:13:56 -07:00 committed by Berker Peksag
parent 1f42421762
commit e81c654c2d

View File

@ -31,7 +31,7 @@ class BaseSocket(object):
self.sock = self.set_options(sock, bound=bound)
def __str__(self, name):
def __str__(self):
return "<socket %d>" % self.sock.fileno()
def __getattr__(self, name):