From 6f14ec5faf5925c78ae9b8a3b4125088e1961450 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Mon, 20 Feb 2023 18:16:41 +0300 Subject: [PATCH] Make Python shebang lines refer to `python3` (#5739) All scripts require Python 3; this change lets them be used in environments where `python` is either Python 2 or missing. `email_settings.py` is not a script, so it doesn't need a shebang line at all. --- cvat-sdk/gen/postprocess.py | 2 +- cvat/settings/email_settings.py | 2 -- manage.py | 2 +- site/process_sdk_docs.py | 2 +- tests/json_to_html.py | 4 ++-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cvat-sdk/gen/postprocess.py b/cvat-sdk/gen/postprocess.py index cb0bfbbeb8ff..1c969e2deb62 100755 --- a/cvat-sdk/gen/postprocess.py +++ b/cvat-sdk/gen/postprocess.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2022 CVAT.ai Corporation # diff --git a/cvat/settings/email_settings.py b/cvat/settings/email_settings.py index ca84a57559ae..d3f9621e09d4 100644 --- a/cvat/settings/email_settings.py +++ b/cvat/settings/email_settings.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - # Copyright (C) 2020-2022 Intel Corporation # Copyright (C) 2022 CVAT.ai Corporation # diff --git a/manage.py b/manage.py index 8334a7973dfb..1cca3f9bb4cf 100644 --- a/manage.py +++ b/manage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2018-2022 Intel Corporation # diff --git a/site/process_sdk_docs.py b/site/process_sdk_docs.py index 522083d2ca84..3b1941248410 100755 --- a/site/process_sdk_docs.py +++ b/site/process_sdk_docs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2022 CVAT.ai Corporation # diff --git a/tests/json_to_html.py b/tests/json_to_html.py index 47763d50b41a..2ef756220939 100644 --- a/tests/json_to_html.py +++ b/tests/json_to_html.py @@ -1,10 +1,10 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2021-2022 Intel Corporation # # SPDX-License-Identifier: MIT -from json2html import * +from json2html import json2html import sys import os import json