Skip to content

Commit

Permalink
fixup! Fix deprecated classmethod datetime.utcnow
Browse files Browse the repository at this point in the history
  • Loading branch information
dochang committed Jul 24, 2024
1 parent 60dde80 commit 789055e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumplus/bumplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import logging
import os
from datetime import datetime
from datetime import UTC, datetime

import jinja2

Expand Down Expand Up @@ -67,7 +67,7 @@ def bump_version(self, new_version):
"old_version": self.config["version"],
"new_version": new_version,
"now": datetime.now(),
"utcnow": datetime.now(datetime.UTC),
"utcnow": datetime.now(UTC),
}
for fname in self.config["files"]:
self.replace_file(tmpl_vars, fname, self.config["files"][fname])
Expand Down

0 comments on commit 789055e

Please sign in to comment.