[tools] master update

Mark J. Cox mark at openssl.org
Thu Feb 6 10:17:16 UTC 2020


The branch master has been updated
       via  b51efa70790d498f07e221348dc3e07f3b2889bc (commit)
      from  216776e13b1673a13fccb525f2ec0c0d821f7525 (commit)


- Log -----------------------------------------------------------------
commit b51efa70790d498f07e221348dc3e07f3b2889bc
Author: Mark J. Cox <mark at awe.com>
Date:   Thu Feb 6 09:29:24 2020 +0000

    Remove requirement of Python 3.7+ (just Python  3 is needed)

-----------------------------------------------------------------------

Summary of changes:
 github-approve-label-workflow/README.md                        | 2 ++
 github-approve-label-workflow/github-approve-label-workflow.py | 5 ++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/github-approve-label-workflow/README.md b/github-approve-label-workflow/README.md
index 8442b58..6acf928 100644
--- a/github-approve-label-workflow/README.md
+++ b/github-approve-label-workflow/README.md
@@ -16,3 +16,5 @@ python github-approve-label-workflow --debug --token token.txt
 or to also actually change any labels
 
 python github-approve-label-workflow --debug --token token.txt --commit
+
+Requires Python 3
diff --git a/github-approve-label-workflow/github-approve-label-workflow.py b/github-approve-label-workflow/github-approve-label-workflow.py
index 99713f7..93ffd72 100644
--- a/github-approve-label-workflow/github-approve-label-workflow.py
+++ b/github-approve-label-workflow/github-approve-label-workflow.py
@@ -1,5 +1,5 @@
 #! /usr/bin/env python
-# requires python 3.7+
+# requires python 3
 #
 # Do we have any open PR's that have label "Approval: done"
 # that are over 24 hours without any other comments?
@@ -20,8 +20,7 @@ from optparse import OptionParser
 api_url = "https://api.github.com/repos/openssl/openssl"
 
 def convertdate(date):
-    # python fromisoformat needs a TZ in hours/minutes
-    return datetime.fromisoformat(date.replace('Z', '+00:00'))
+    return datetime.strptime(date.replace('Z',"+0000"), "%Y-%m-%dT%H:%M:%S%z")
 
 # Get all the open pull requests, filtering by approval: done label
 


More information about the openssl-commits mailing list