From: Daniel Arndt Date: Mon, 5 Aug 2024 18:45:34 +0000 (-0400) Subject: Update print_deprecated.py X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17436%2Fhead;p=dealii.git Update print_deprecated.py --- 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,