summaryrefslogtreecommitdiff
path: root/src/buildstream/utils.py
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2019-06-30 02:45:24 +0100
committerChandan Singh <chandan@chandansingh.net>2019-09-02 21:53:41 +0100
commit3641578dcac7bd514f8e074835841f381a36c877 (patch)
tree87213fab21bd7b0e9713b680d9441600e4926906 /src/buildstream/utils.py
parentcca1b6b9e8e8bade3f604e1f46bcaa3230b5fcda (diff)
downloadbuildstream-3641578dcac7bd514f8e074835841f381a36c877.tar.gz
buildstream/utils.py: Fix parameter types for calendar.timegm
`calendar.timegm()` accepts a tuple, but we were giving it a list. This was highlighted by `mypy`.
Diffstat (limited to 'src/buildstream/utils.py')
-rw-r--r--src/buildstream/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/utils.py b/src/buildstream/utils.py
index b78c25871..578d520ec 100644
--- a/src/buildstream/utils.py
+++ b/src/buildstream/utils.py
@@ -46,7 +46,7 @@ from ._protos.build.bazel.remote.execution.v2 import remote_execution_pb2
from ._utils import url_directory_name # pylint: disable=unused-import
# The magic number for timestamps: 2011-11-11 11:11:11
-BST_ARBITRARY_TIMESTAMP = calendar.timegm([2011, 11, 11, 11, 11, 11])
+BST_ARBITRARY_TIMESTAMP = calendar.timegm((2011, 11, 11, 11, 11, 11))
# The separator we use for user specified aliases
_ALIAS_SEPARATOR = ':'