]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update print_deprecated.py 17436/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 5 Aug 2024 18:45:34 +0000 (14:45 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 5 Aug 2024 18:47:12 +0000 (14:47 -0400)
contrib/utilities/print_deprecated.py

index 8074da2413dbecb7aec42906c196a7420e6183e0..5bd5115cad32db081c1e5828edf040fad4c88313 100755 (executable)
@@ -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,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.