From 4cffa9a1ffb37d4de7e99a851a9ed87b3c02d229 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 23 Feb 2017 23:55:14 +0800 Subject: [PATCH] Fixed #27878, refs #23919 -- Used python3 shebangs. --- django/bin/django-admin.py | 2 +- django/conf/project_template/manage.py-tpl | 2 +- django/contrib/admin/bin/compress.py | 2 +- docs/topics/testing/advanced.txt | 2 +- scripts/manage_translations.py | 2 +- tests/i18n/sampleproject/manage.py | 2 +- tests/i18n/sampleproject/update_catalogs.py | 2 +- tests/runtests.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py index f518cdc463..53c32d6573 100755 --- a/django/bin/django-admin.py +++ b/django/bin/django-admin.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from django.core import management if __name__ == "__main__": diff --git a/django/conf/project_template/manage.py-tpl b/django/conf/project_template/manage.py-tpl index 9f83e65491..39df575158 100755 --- a/django/conf/project_template/manage.py-tpl +++ b/django/conf/project_template/manage.py-tpl @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys diff --git a/django/contrib/admin/bin/compress.py b/django/contrib/admin/bin/compress.py index dbef84d759..2572b2f4f4 100644 --- a/django/contrib/admin/bin/compress.py +++ b/django/contrib/admin/bin/compress.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import argparse import os import subprocess diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index 192a62c516..6bc6b02c5e 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -333,7 +333,7 @@ Let's take a look inside a couple of those files: .. snippet:: :filename: runtests.py - #!/usr/bin/env python + #!/usr/bin/env python3 import os import sys diff --git a/scripts/manage_translations.py b/scripts/manage_translations.py index 74534d47da..9b11f33be2 100644 --- a/scripts/manage_translations.py +++ b/scripts/manage_translations.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # This python file contains utility scripts to manage Django translations. # It has to be run inside the django git root directory. diff --git a/tests/i18n/sampleproject/manage.py b/tests/i18n/sampleproject/manage.py index 87a0ec369a..6f1708a5b3 100755 --- a/tests/i18n/sampleproject/manage.py +++ b/tests/i18n/sampleproject/manage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys diff --git a/tests/i18n/sampleproject/update_catalogs.py b/tests/i18n/sampleproject/update_catalogs.py index 131d3e268b..368a160b4e 100755 --- a/tests/i18n/sampleproject/update_catalogs.py +++ b/tests/i18n/sampleproject/update_catalogs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Helper script to update sampleproject's translation catalogs. diff --git a/tests/runtests.py b/tests/runtests.py index 4cb36049fd..6ffd9ea68f 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import argparse import atexit import copy