summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-12-08 07:31:48 -0500
committerNed Batchelder <ned@nedbatchelder.com>2020-12-08 07:31:48 -0500
commit37285cba3f81fda91e7208c0e3cb56f6a8ea4ddc (patch)
tree9015fc10a8c721defa08b1f2dfeb144451907fe6
parentaeba5e625aad31794b45f243b9853df0edc0fda8 (diff)
downloadpython-coveragepy-git-37285cba3f81fda91e7208c0e3cb56f6a8ea4ddc.tar.gz
Add a docstring to satisfy pylint
-rw-r--r--ci/download_gha_artifacts.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/download_gha_artifacts.py b/ci/download_gha_artifacts.py
index 27da289b..ac9d4790 100644
--- a/ci/download_gha_artifacts.py
+++ b/ci/download_gha_artifacts.py
@@ -28,6 +28,11 @@ def unpack_zipfile(filename):
z.extract(name)
def utc2local(timestring):
+ """Convert a UTC time into local time in a more readable form.
+
+ For example: '20201208T122900Z' to '2020-12-08 07:29:00'.
+
+ """
dt = datetime.datetime
utc = dt.fromisoformat(timestring.rstrip("Z"))
epoch = time.mktime(utc.timetuple())