equal
deleted
inserted
replaced
535 httplib.HTTPConnection.__init__(self, *args, **kwargs) |
535 httplib.HTTPConnection.__init__(self, *args, **kwargs) |
536 self.sentbytescount = 0 |
536 self.sentbytescount = 0 |
537 self.receivedbytescount = 0 |
537 self.receivedbytescount = 0 |
538 |
538 |
539 def __repr__(self): |
539 def __repr__(self): |
540 base = super(HTTPConnection, self).__repr__() |
540 base = super().__repr__() |
541 local = "(unconnected)" |
541 local = "(unconnected)" |
542 s = self.sock |
542 s = self.sock |
543 if s: |
543 if s: |
544 try: |
544 try: |
545 local = "%s:%d" % s.getsockname() |
545 local = "%s:%d" % s.getsockname() |