diff options
author | Chandan Singh <chandan@chandansingh.net> | 2019-06-30 02:45:24 +0100 |
---|---|---|
committer | Chandan Singh <chandan@chandansingh.net> | 2019-09-02 21:53:41 +0100 |
commit | 3641578dcac7bd514f8e074835841f381a36c877 (patch) | |
tree | 87213fab21bd7b0e9713b680d9441600e4926906 /src | |
parent | cca1b6b9e8e8bade3f604e1f46bcaa3230b5fcda (diff) | |
download | buildstream-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')
-rw-r--r-- | src/buildstream/utils.py | 2 |
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 = ':' |