Skip to content

Commit acd7ed0

Browse files
committed
Update Python shebangs to explicitly use python3
Signed-off-by: pakagronglb <[email protected]>
1 parent 9463936 commit acd7ed0

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

.github/scripts/conformance-client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
"""Conformance client for python-tuf, part of tuf-conformance"""
33

44
# Copyright 2024 tuf-conformance contributors

examples/client/client

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
"""TUF Client Example"""
33

44
# Copyright 2012 - 2017, New York University and the TUF contributors

examples/repository/repo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright 2021-2022 python-tuf contributors
33
# SPDX-License-Identifier: MIT OR Apache-2.0
44

examples/uploader/uploader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright 2021-2022 python-tuf contributors
33
# SPDX-License-Identifier: MIT OR Apache-2.0
44

tests/simple_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2012 - 2017, New York University and the TUF contributors
44
# SPDX-License-Identifier: MIT OR Apache-2.0

tuf/api/serialization/json.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Copyright New York University and the TUF contributors
22
# SPDX-License-Identifier: MIT OR Apache-2.0
33

4-
"""JSON de/serialization code."""
5-
4+
"""``tuf.api.serialization.json`` module provides concrete implementations to
5+
serialize and deserialize TUF role metadata to and from the JSON wireline
6+
format for transportation, and to serialize the 'signed' part of TUF role
7+
metadata to the OLPC Canonical JSON format for signature generation and
8+
verification.
9+
"""
10+
11+
# We should not have shadowed stdlib json but that milk spilled already
612
# ruff: noqa: A005
713

814
from __future__ import annotations

0 commit comments

Comments
 (0)