comparison mercurial/url.py @ 12770:614f0d8724ab

check-code: find trailing whitespace
author Martin Geisler <mg@lazybytes.net>
date Wed, 20 Oct 2010 10:13:04 +0200
parents 6ab4a7d3c179
children 9d6adddc8eea
comparison
equal deleted inserted replaced
12769:daa8dc6e1f66 12770:614f0d8724ab
487 return keepalive.HTTPHandler._start_transaction(self, h, req) 487 return keepalive.HTTPHandler._start_transaction(self, h, req)
488 488
489 def _verifycert(cert, hostname): 489 def _verifycert(cert, hostname):
490 '''Verify that cert (in socket.getpeercert() format) matches hostname. 490 '''Verify that cert (in socket.getpeercert() format) matches hostname.
491 CRLs and subjectAltName are not handled. 491 CRLs and subjectAltName are not handled.
492 492
493 Returns error message if any problems are found and None on success. 493 Returns error message if any problems are found and None on success.
494 ''' 494 '''
495 if not cert: 495 if not cert:
496 return _('no certificate received') 496 return _('no certificate received')
497 dnsname = hostname.lower() 497 dnsname = hostname.lower()