Skip to content
Browse files

backporting fix in 6760075 to enable 1.9 to work in Python 2.7

  • Loading branch information...
1 parent 55b1b77 commit 650345525f54a8efd38ccc72d2b90a876381df48 @paltman paltman committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 boto/connection.py
View
4 boto/connection.py
@@ -239,8 +239,8 @@ def server_name(self, port=None):
# versions, it would append ":443" to the hostname sent
# in the Host header and so we needed to make sure we
# did the same when calculating the V2 signature. In 2.6
- # it no longer does that. Hence, this kludge.
- if sys.version[:3] == "2.6" and port == 443:
+ # (and higher) it no longer does that. Hence, this kludge.
+ if sys.version[:3] in ('2.6', '2.7') and port == 443:
signature_host = self.host
else:
signature_host = '%s:%d' % (self.host, port)

0 comments on commit 6503455

Please sign in to comment.
Something went wrong with that request. Please try again.