From 29103c7b32e1c3342bac7a29514c3f033da5458a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 18 Oct 2001 17:33:19 +0000 Subject: [PATCH] Reindent __repr__. --- Lib/asyncore.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 5225d4b3dc7..4864eb43018 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -207,17 +207,17 @@ def __init__ (self, sock=None, map=None): self.addr = sock.getpeername() def __repr__ (self): - status = [self.__class__.__module__+"."+self.__class__.__name__] - if self.accepting and self.addr: - status.append ('listening') - elif self.connected: - status.append ('connected') - if self.addr is not None: - try: - status.append ('%s:%d' % self.addr) - except TypeError: - status.append (repr(self.addr)) - return '<%s at %#x>' % (' '.join (status), id (self)) + status = [self.__class__.__module__+"."+self.__class__.__name__] + if self.accepting and self.addr: + status.append ('listening') + elif self.connected: + status.append ('connected') + if self.addr is not None: + try: + status.append ('%s:%d' % self.addr) + except TypeError: + status.append (repr(self.addr)) + return '<%s at %#x>' % (' '.join (status), id (self)) def add_channel (self, map=None): #self.log_info ('adding channel %s' % self)