diff options
author | Kelley Spoon <kelley.spoon@linaro.org> | 2021-11-09 07:37:55 -0600 |
---|---|---|
committer | Kelley Spoon <kelley.spoon@linaro.org> | 2021-11-10 08:29:41 -0600 |
commit | 2db719d983bda04d334fbd34c5d7de5fceb05d9d (patch) | |
tree | 6774e88adf61fe30f88f14888d70f17a13712bab | |
parent | c3283fc8d9574209c451ff6c45474256ec80745c (diff) |
patchwork-tools: invoke python3 from scripts
Due to the fact that development was done in a python3
native environment, it wasn't apparent that the userspace
scripts needed to be updated to specify python3.
This change removes any chance for python2 to be called
as the interpreter for any of those scripts.
Change-Id: I6547f64f0de288dbfe94db3333d3b79199d2f9de
-rwxr-xr-x | alt_email.py | 2 | ||||
-rwxr-xr-x | ensure_projects.py | 2 | ||||
-rwxr-xr-x | gen_project_json.py | 2 | ||||
-rwxr-xr-x | generate_mbox.py | 2 | ||||
-rwxr-xr-x | import_emails.py | 2 | ||||
-rwxr-xr-x | import_mbox.py | 2 | ||||
-rwxr-xr-x | linaro_metrics/cli.py | 2 | ||||
-rwxr-xr-x | linaro_metrics/migrate_patchmetrics.py | 2 | ||||
-rwxr-xr-x | linaro_metrics/sync_gerrit_changes.py | 2 | ||||
-rwxr-xr-x | linaro_metrics/sync_github_changes.py | 2 | ||||
-rwxr-xr-x | linaro_metrics/sync_teams.py | 2 | ||||
-rwxr-xr-x | linaro_metrics/sync_users.py | 2 | ||||
-rwxr-xr-x | linaro_metrics/teamcredit.py | 2 | ||||
-rwxr-xr-x | update_commited_patches.py | 2 |
14 files changed, 14 insertions, 14 deletions
diff --git a/alt_email.py b/alt_email.py index d678133..5901b1a 100755 --- a/alt_email.py +++ b/alt_email.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """ A script to export an identities.yaml file from Patchworks that attempts to cross-reference with user information from LDAP. diff --git a/ensure_projects.py b/ensure_projects.py index e4f2220..061a413 100755 --- a/ensure_projects.py +++ b/ensure_projects.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from bin import django_setup from django.conf import settings diff --git a/gen_project_json.py b/gen_project_json.py index 9f89b9a..8d098c2 100755 --- a/gen_project_json.py +++ b/gen_project_json.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """ A script to generate a projects.json file from Patchworks. Details of the projects.json file can be found at: diff --git a/generate_mbox.py b/generate_mbox.py index 14e7afa..59b9bbc 100755 --- a/generate_mbox.py +++ b/generate_mbox.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """ A script to generate a projects.json file from Patchworks. This script should be run with the following exports: diff --git a/import_emails.py b/import_emails.py index dee1e01..abf8b09 100755 --- a/import_emails.py +++ b/import_emails.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from bin import django_setup, add_logging_arguments diff --git a/import_mbox.py b/import_mbox.py index d13941f..25a7488 100755 --- a/import_mbox.py +++ b/import_mbox.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from bin import django_setup, add_logging_arguments diff --git a/linaro_metrics/cli.py b/linaro_metrics/cli.py index bd7b392..fba5d8c 100755 --- a/linaro_metrics/cli.py +++ b/linaro_metrics/cli.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Python fragment that can # be used to load up all the diff --git a/linaro_metrics/migrate_patchmetrics.py b/linaro_metrics/migrate_patchmetrics.py index f9fb683..cb7d95f 100755 --- a/linaro_metrics/migrate_patchmetrics.py +++ b/linaro_metrics/migrate_patchmetrics.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import argparse import logging diff --git a/linaro_metrics/sync_gerrit_changes.py b/linaro_metrics/sync_gerrit_changes.py index 04a9df3..f3fbd9f 100755 --- a/linaro_metrics/sync_gerrit_changes.py +++ b/linaro_metrics/sync_gerrit_changes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 import os import sys diff --git a/linaro_metrics/sync_github_changes.py b/linaro_metrics/sync_github_changes.py index 149650f..98f9ca1 100755 --- a/linaro_metrics/sync_github_changes.py +++ b/linaro_metrics/sync_github_changes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 import contextlib import json diff --git a/linaro_metrics/sync_teams.py b/linaro_metrics/sync_teams.py index c549d77..5ab074e 100755 --- a/linaro_metrics/sync_teams.py +++ b/linaro_metrics/sync_teams.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 import os import sys diff --git a/linaro_metrics/sync_users.py b/linaro_metrics/sync_users.py index dde4603..1808833 100755 --- a/linaro_metrics/sync_users.py +++ b/linaro_metrics/sync_users.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 import sys import os diff --git a/linaro_metrics/teamcredit.py b/linaro_metrics/teamcredit.py index a8f5c8b..9ae0552 100755 --- a/linaro_metrics/teamcredit.py +++ b/linaro_metrics/teamcredit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 import datetime from linaro_metrics.models import Team, TeamMembership, TeamCredit from patchwork.models import Patch diff --git a/update_commited_patches.py b/update_commited_patches.py index 9808da0..3f18efc 100755 --- a/update_commited_patches.py +++ b/update_commited_patches.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import fcntl import logging |