summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcon-f-use <con-f-use@gmx.net>2020-03-18 18:43:23 +0100
committercon-f-use <con-f-use@gmx.net>2020-03-18 18:43:23 +0100
commit03e916468a46429b38485297b719308c75b626c5 (patch)
tree356c8985b1a4c7e2e81473bcb1296948564afa66
parent125172c9f8fa660e5df82a05f8ded3775580e6f4 (diff)
downloadsetuptools-scm-03e916468a46429b38485297b719308c75b626c5.tar.gz
Make black happy
-rw-r--r--README.rst2
-rw-r--r--src/setuptools_scm/utils.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index c6ab597..c681b25 100644
--- a/README.rst
+++ b/README.rst
@@ -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()