[Python-checkins] CVS: python/dist/src/Lib asyncore.py,1.23,1.24
Martin v. L?wis
loewis@users.sourceforge.net
Thu, 18 Oct 2001 10:33:21 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv25053
Modified Files:
asyncore.py
Log Message:
Reindent __repr__.
Index: asyncore.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** asyncore.py 2001/10/18 11:39:34 1.23
--- asyncore.py 2001/10/18 17:33:19 1.24
***************
*** 208,222 ****
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))
def add_channel (self, map=None):
--- 208,222 ----
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))
def add_channel (self, map=None):