diff --git a/did/plugins/git.py b/did/plugins/git.py index ac8999af..786907df 100644 --- a/did/plugins/git.py +++ b/did/plugins/git.py @@ -78,7 +78,7 @@ def commits(self, user, options): return commits else: log.debug(errors.strip()) - log.warn("Unable to check commits in '{0}'".format(self.path)) + log.warning("Unable to check commits in '{0}'".format(self.path)) return [] diff --git a/did/plugins/jira.py b/did/plugins/jira.py index a3bfea3d..c9098864 100644 --- a/did/plugins/jira.py +++ b/did/plugins/jira.py @@ -432,10 +432,10 @@ def session(self): delta = ( expiring_at.astimezone() - datetime.now().astimezone()) if delta.days < self.token_expiration: - log.warn( + log.warning( f"Jira token '{self.token_name}' " f"expires in {delta.days} days.") except (requests.exceptions.HTTPError, KeyError, ValueError) as error: - log.warn(error) + log.warning(error) return self._session diff --git a/did/stats.py b/did/stats.py index 3cf7028b..051e52cd 100644 --- a/did/stats.py +++ b/did/stats.py @@ -131,7 +131,7 @@ def __init__(cls, name, bases, attrs): if plugin_name in registry: orig = registry[plugin_name] - log.warn("%s overriding %s" % (cls.__module__, orig.__module__)) + log.warning("%s overriding %s" % (cls.__module__, orig.__module__)) registry[plugin_name] = cls