title: Can I use TLS version 1.1 or 1.2 in python 2?
body: <p>I read a document that says that Python 2 only has <code>ssl.PROTOCOL_TLSv1</code> constant, and that <code>ssl.PROTOCOL_TLSv1_1</code> and <code>ssl.PROTOCOL_TLSv1_2</code> were added in Python 3.4. So how can I use TLS 1.1 and 1.2 in Python 2?</p>
  
  <p>PS. I don't want to use TLS 1.0 because it has some security flaws. TLS 1.2 is the newest version now, so I want to make my program use TLS 1.2 only; if the server doesn't support TLS 1.2 then just make the connection failed.</p>