]> granicus.if.org Git - python/commitdiff
Reindent __repr__.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 18 Oct 2001 17:33:19 +0000 (17:33 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 18 Oct 2001 17:33:19 +0000 (17:33 +0000)
Lib/asyncore.py

index 5225d4b3dc7e00bd4f13bfb29f1bf78c97d8e832..4864eb430189a1cb34de9fd3b386bd5eb9c6556b 100644 (file)
@@ -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)