mercurial/hgweb/wsgiheaders.py
changeset 41588 765a608c2108
parent 37605 74e1362585c0
child 43076 2372284d9457
equal deleted inserted replaced
41587:ccaa52865fac 41588:765a608c2108
   125         list.
   125         list.
   126         """
   126         """
   127         return self._headers[:]
   127         return self._headers[:]
   128 
   128 
   129     def __repr__(self):
   129     def __repr__(self):
   130         return "%s(%r)" % (self.__class__.__name__, self._headers)
   130         return r"%s(%r)" % (self.__class__.__name__, self._headers)
   131 
   131 
   132     def __str__(self):
   132     def __str__(self):
   133         """str() returns the formatted headers, complete with end line,
   133         """str() returns the formatted headers, complete with end line,
   134         suitable for direct HTTP transmission."""
   134         suitable for direct HTTP transmission."""
   135         return '\r\n'.join(["%s: %s" % kv for kv in self._headers]+['',''])
   135         return '\r\n'.join(["%s: %s" % kv for kv in self._headers]+['',''])