diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-10-18 17:33:19 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-10-18 17:33:19 (GMT) |
commit | 29103c7b32e1c3342bac7a29514c3f033da5458a (patch) | |
tree | 6e2b849aa980adb950435d7619cfaa9aecec27a7 /Lib | |
parent | cf672f15e0b31eaff58e54dbbe62a2d52d49a63c (diff) | |
download | cpython-29103c7b32e1c3342bac7a29514c3f033da5458a.zip cpython-29103c7b32e1c3342bac7a29514c3f033da5458a.tar.gz cpython-29103c7b32e1c3342bac7a29514c3f033da5458a.tar.bz2 |
Reindent __repr__.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncore.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 5225d4b..4864eb4 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -207,17 +207,17 @@ class dispatcher: 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) |