From 0f7184767cfacb8055ff425af7b5d6f8dd662cd2 Mon Sep 17 00:00:00 2001 From: James Antill Date: Mar 09 2021 22:44:31 +0000 Subject: Fixup centos_cert for py3 compat. --- diff --git a/src/centpkg/centos_cert.py b/src/centpkg/centos_cert.py index 854f396..1d6e63f 100644 --- a/src/centpkg/centos_cert.py +++ b/src/centpkg/centos_cert.py @@ -1,3 +1,6 @@ + +from __future__ import print_function + import os from OpenSSL import crypto import urlgrabber @@ -40,10 +43,10 @@ def verify_cert(): delta = datetime.datetime.now() + datetime.timedelta(days=21) warn = datetime.datetime.strftime(delta, dateFmt) - print 'cert expires: %s-%s-%s' % (valid_until[:4], valid_until[4:6], valid_until[6:8]) + print('cert expires: %s-%s-%s' % (valid_until[:4], valid_until[4:6], valid_until[6:8])) if valid_until < warn: - print 'WARNING: Your cert expires soon.' + print('WARNING: Your cert expires soon.') def certificate_expired():