From 8f70c40f8063888531c7655021bb25f6bc2f781f Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 5 Aug 2024 14:45:34 -0400 Subject: [PATCH] Update print_deprecated.py --- contrib/utilities/print_deprecated.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/utilities/print_deprecated.py b/contrib/utilities/print_deprecated.py index 8074da2413..5bd5115cad 100755 --- a/contrib/utilities/print_deprecated.py +++ b/contrib/utilities/print_deprecated.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ## ------------------------------------------------------------------------ ## @@ -77,7 +77,7 @@ class DeprecatedDeclaration(object): self.commit_hash = self.git_log_output[0].split(' ')[0] self.commit_summary = self.git_log_output[9][len("summary "):] self.epoch_time = int(self.git_log_output[7][len("commiter-time "):]) - self.output_time = datetime.datetime.utcfromtimestamp(self.epoch_time) + self.output_time = datetime.datetime.fromtimestamp(self.epoch_time, datetime.UTC) git_tag_output = subprocess.check_output(["git", "tag", "--contains", self.commit_hash, -- 2.39.5