diff options
author | con-f-use <con-f-use@gmx.net> | 2020-03-18 18:43:23 +0100 |
---|---|---|
committer | con-f-use <con-f-use@gmx.net> | 2020-03-18 18:43:23 +0100 |
commit | 03e916468a46429b38485297b719308c75b626c5 (patch) | |
tree | 356c8985b1a4c7e2e81473bcb1296948564afa66 | |
parent | 125172c9f8fa660e5df82a05f8ded3775580e6f4 (diff) | |
download | setuptools-scm-03e916468a46429b38485297b719308c75b626c5.tar.gz |
Make black happy
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | src/setuptools_scm/utils.py | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -473,7 +473,7 @@ Version number construction Configures how the local part of a version is rendered given a ``setuptools_scm.version.ScmVersion`` instance and should return a string representing the local version. - Dates and times are in Coordinated Universal Time (UTC), because as part + Dates and times are in Coordinated Universal Time (UTC), because as part of the version, they should be location independent. Available implementations: diff --git a/src/setuptools_scm/utils.py b/src/setuptools_scm/utils.py index ab0dede..c31007a 100644 --- a/src/setuptools_scm/utils.py +++ b/src/setuptools_scm/utils.py @@ -123,12 +123,17 @@ def data_from_mime(path): class UTC(datetime.tzinfo): _ZERO = datetime.timedelta(0) + def utcoffset(self, dt): return self._ZERO + def tzname(self, dt): return "UTC" + def dst(self, dt): return self._ZERO + + utc = UTC() |