Mercurial > public > mercurial-scm > hg-stable
comparison hgext/bugzilla.py @ 30487:f7d66746ec18
bugzilla: stop mentioning Pythons older than 2.6
We don't support those anyway.
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 21 Nov 2016 17:52:32 -0500 |
parents | d5883fd055c6 |
children | 78de43ab585f |
comparison
equal
deleted
inserted
replaced
30486:d2c40510104e | 30487:f7d66746ec18 |
---|---|
569 self.send_host(h, host) | 569 self.send_host(h, host) |
570 self.send_cookies(h) | 570 self.send_cookies(h) |
571 self.send_user_agent(h) | 571 self.send_user_agent(h) |
572 self.send_content(h, request_body) | 572 self.send_content(h, request_body) |
573 | 573 |
574 # Deal with differences between Python 2.4-2.6 and 2.7. | 574 # Deal with differences between Python 2.6 and 2.7. |
575 # In the former h is a HTTP(S). In the latter it's a | 575 # In the former h is a HTTP(S). In the latter it's a |
576 # HTTP(S)Connection. Luckily, the 2.4-2.6 implementation of | 576 # HTTP(S)Connection. Luckily, the 2.6 implementation of |
577 # HTTP(S) has an underlying HTTP(S)Connection, so extract | 577 # HTTP(S) has an underlying HTTP(S)Connection, so extract |
578 # that and use it. | 578 # that and use it. |
579 try: | 579 try: |
580 response = h.getresponse() | 580 response = h.getresponse() |
581 except AttributeError: | 581 except AttributeError: |