Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on the morning of Tuesday 11th August 2020, starting at approximately 9am PDT. It is expected to take around 20 minutes and there will be a short period of downtime (less than five minutes) towards the end of the maintenance window. Please direct any comments, questions, or concerns to computing-help@ligo.org.

Commit 516dbcc5 authored by Alexander Pace's avatar Alexander Pace

py2.7.5 compatibility fix

parent 4882ce8c
Pipeline #131785 passed with stages
in 4 minutes and 37 seconds
ligo-gracedb (2.6.1-1) unstable; urgency=low
* SSL_PROTOCOL fix for python < 2.7.13
-- Alexander E. Pace <alexander.pace@ligo.org> Fri, 05 Jun 2020 13:03:59 -0400
ligo-gracedb (2.6.0-1) unstable; urgency=low
* Added time/space_coinc_far fields to support RAVEN
* Testing and packaging changes.
......
Changelog
=========
2.6.1 (June 05, 2020)
---------------------
- SSL_PROTOCOL fix for python < 2.7.13
2.6.0 (June 04, 2020)
-------------------------
......
%define name ligo-gracedb
%define version 2.6.0
%define unmangled_version 2.6.0
%define version 2.6.1
%define unmangled_version 2.6.1
%define release 1
Summary: Gravity Wave Candidate Event Database
......
......@@ -278,7 +278,15 @@ class GsiRest(object):
def set_up_connector(self, host, port, proxy_host, proxy_port):
# Prepare SSL context
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS)
# Fix for python < 2.7.13
# https://docs.python.org/2/library/ssl.html#ssl.PROTOCOL_TLS
# This *needs* to be updated. Eventually 2.7.5 support is going
# to have to stop.
if sys.version_info >= (2, 7, 13):
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS)
else:
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
if (self.auth_type == 'x509'):
try:
ssl_context.load_cert_chain(self.credentials['cert_file'],
......
__version__ = '2.6.0'
__version__ = '2.6.1'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment