diff --git a/devscripts/bash-completion.py b/devscripts/bash-completion.py index a41aa4c620..46b4b2ff55 100755 --- a/devscripts/bash-completion.py +++ b/devscripts/bash-completion.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals import os diff --git a/devscripts/check-porn.py b/devscripts/check-porn.py index 5e00724683..50f6bebc64 100644 --- a/devscripts/check-porn.py +++ b/devscripts/check-porn.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals """ diff --git a/devscripts/create-github-release.py b/devscripts/create-github-release.py index e5740f40e8..53b3e0f485 100644 --- a/devscripts/create-github-release.py +++ b/devscripts/create-github-release.py @@ -1,6 +1,6 @@ # Unused -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals import io diff --git a/devscripts/fish-completion.py b/devscripts/fish-completion.py index 5313c4a016..fb45e02805 100755 --- a/devscripts/fish-completion.py +++ b/devscripts/fish-completion.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals import optparse diff --git a/devscripts/generate_aes_testdata.py b/devscripts/generate_aes_testdata.py index f9bb2ad3b0..0979eee5b9 100644 --- a/devscripts/generate_aes_testdata.py +++ b/devscripts/generate_aes_testdata.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import unicode_literals import codecs diff --git a/devscripts/gh-pages/update-copyright.py b/devscripts/gh-pages/update-copyright.py index 61487f9258..e122d0283f 100755 --- a/devscripts/gh-pages/update-copyright.py +++ b/devscripts/gh-pages/update-copyright.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import with_statement, unicode_literals diff --git a/devscripts/lazy_load_template.py b/devscripts/lazy_load_template.py index c4e5fc1f40..d06655d106 100644 --- a/devscripts/lazy_load_template.py +++ b/devscripts/lazy_load_template.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/devscripts/make_contributing.py b/devscripts/make_contributing.py index b0cacbc4bf..c7f3eef761 100755 --- a/devscripts/make_contributing.py +++ b/devscripts/make_contributing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals # import io diff --git a/devscripts/make_issue_template.py b/devscripts/make_issue_template.py index 13f337c822..9020592317 100644 --- a/devscripts/make_issue_template.py +++ b/devscripts/make_issue_template.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals import io diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.py index cc1cf0bd4a..f13262f76f 100644 --- a/devscripts/make_lazy_extractors.py +++ b/devscripts/make_lazy_extractors.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import unicode_literals, print_function from inspect import getsource diff --git a/devscripts/make_readme.py b/devscripts/make_readme.py index 9cbf5b7498..3f56af7447 100755 --- a/devscripts/make_readme.py +++ b/devscripts/make_readme.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python3 + +# yt-dlp --help | make_readme.py +# This must be run in a console of correct width + from __future__ import unicode_literals import io diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.py index 12655bf89b..17a34843fd 100644 --- a/devscripts/make_supportedsites.py +++ b/devscripts/make_supportedsites.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals import io diff --git a/devscripts/prepare_manpage.py b/devscripts/prepare_manpage.py index 4578a33ceb..485b39e9f3 100644 --- a/devscripts/prepare_manpage.py +++ b/devscripts/prepare_manpage.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from __future__ import unicode_literals import io diff --git a/devscripts/show-downloads-statistics.py b/devscripts/show-downloads-statistics.py index e76f1e4c8a..4855aa7c85 100644 --- a/devscripts/show-downloads-statistics.py +++ b/devscripts/show-downloads-statistics.py @@ -1,6 +1,6 @@ # Unused -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals import itertools diff --git a/devscripts/update-version.py b/devscripts/update-version.py index c6e7b53098..2d1673d0e2 100644 --- a/devscripts/update-version.py +++ b/devscripts/update-version.py @@ -1,4 +1,6 @@ +#!/usr/bin/env python3 from __future__ import unicode_literals + from datetime import datetime # import urllib.request diff --git a/devscripts/zsh-completion.py b/devscripts/zsh-completion.py index 68d40014ba..780df0de6c 100755 --- a/devscripts/zsh-completion.py +++ b/devscripts/zsh-completion.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals import os diff --git a/pyinst.py b/pyinst.py index b0b68e6c3d..8f24fdaf67 100644 --- a/pyinst.py +++ b/pyinst.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/setup.py b/setup.py index 22547fc5f3..8f74c06c1a 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from setuptools import setup, Command, find_packages diff --git a/test/test_InfoExtractor.py b/test/test_InfoExtractor.py index c4b7f689e3..9b6672a1db 100644 --- a/test/test_InfoExtractor.py +++ b/test/test_InfoExtractor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 1696ccd306..2b3ed8f7b5 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_YoutubeDLCookieJar.py b/test/test_YoutubeDLCookieJar.py index 0fadf812b0..c514413a45 100644 --- a/test/test_YoutubeDLCookieJar.py +++ b/test/test_YoutubeDLCookieJar.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_aes.py b/test/test_aes.py index efbdd2e1a9..4fd87ce229 100644 --- a/test/test_aes.py +++ b/test/test_aes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_age_restriction.py b/test/test_age_restriction.py index 2eccd47187..af89f29ff7 100644 --- a/test/test_age_restriction.py +++ b/test/test_age_restriction.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals # Allow direct execution diff --git a/test/test_all_urls.py b/test/test_all_urls.py index 5f3c77d8e0..68c1c68d3f 100644 --- a/test/test_all_urls.py +++ b/test/test_all_urls.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_cache.py b/test/test_cache.py index d6de221946..8c4f853872 100644 --- a/test/test_cache.py +++ b/test/test_cache.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_compat.py b/test/test_compat.py index d903a5bfea..c9bc4d7fb5 100644 --- a/test/test_compat.py +++ b/test/test_compat.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_download.py b/test/test_download.py index ed6f73c0c9..23d733f446 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_downloader_http.py b/test/test_downloader_http.py index 2ef96b922c..03ae8c62a4 100644 --- a/test/test_downloader_http.py +++ b/test/test_downloader_http.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_execution.py b/test/test_execution.py index 8a0d65bfb1..cf6b6b9135 100644 --- a/test/test_execution.py +++ b/test/test_execution.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_http.py b/test/test_http.py index c9e7ee225c..40df167e07 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_iqiyi_sdk_interpreter.py b/test/test_iqiyi_sdk_interpreter.py index b39bf42701..e6ed9d628c 100644 --- a/test/test_iqiyi_sdk_interpreter.py +++ b/test/test_iqiyi_sdk_interpreter.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index def823884d..8b2b60403c 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_overwrites.py b/test/test_overwrites.py index 41b4e6dead..20dfcb70a1 100644 --- a/test/test_overwrites.py +++ b/test/test_overwrites.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals import os diff --git a/test/test_post_hooks.py b/test/test_post_hooks.py index 51031871c6..3f9a61c1ec 100644 --- a/test/test_post_hooks.py +++ b/test/test_post_hooks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_postprocessors.py b/test/test_postprocessors.py index 868bb25f9b..1f8f375cc3 100644 --- a/test/test_postprocessors.py +++ b/test/test_postprocessors.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_socks.py b/test/test_socks.py index 8b42869821..76aabb27f0 100644 --- a/test/test_socks.py +++ b/test/test_socks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_subtitles.py b/test/test_subtitles.py index 61547cdb10..f7f356832e 100644 --- a/test/test_subtitles.py +++ b/test/test_subtitles.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals # Allow direct execution diff --git a/test/test_swfinterp.py b/test/test_swfinterp.py index 29a390e425..5d5b21e6d2 100644 --- a/test/test_swfinterp.py +++ b/test/test_swfinterp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals # Allow direct execution diff --git a/test/test_update.py.disabled b/test/test_update.py.disabled index 617aee2f8b..1e8edf0f6b 100644 --- a/test/test_update.py.disabled +++ b/test/test_update.py.disabled @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/test/test_utils.py b/test/test_utils.py index cf541de4ad..04d355b4fb 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_verbose_output.py b/test/test_verbose_output.py index 9b1ccde880..86b039a4aa 100644 --- a/test/test_verbose_output.py +++ b/test/test_verbose_output.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_write_annotations.py b/test/test_write_annotations.py index 3a01223748..fa31be0cc6 100644 --- a/test/test_write_annotations.py +++ b/test/test_write_annotations.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py index b38a47fc51..528b753345 100644 --- a/test/test_youtube_lists.py +++ b/test/test_youtube_lists.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals # Allow direct execution diff --git a/test/test_youtube_misc.py b/test/test_youtube_misc.py index d9bb10d265..402681cad8 100644 --- a/test/test_youtube_misc.py +++ b/test/test_youtube_misc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals # Allow direct execution diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py index 80cb4b93aa..1a5063bab8 100644 --- a/test/test_youtube_signature.py +++ b/test/test_youtube_signature.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index b67da9f08d..a09c05b414 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import absolute_import, unicode_literals diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index 108a44d473..45a29d3c76 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals diff --git a/yt_dlp/__main__.py b/yt_dlp/__main__.py index f7329d67ea..c9f41473db 100644 --- a/yt_dlp/__main__.py +++ b/yt_dlp/__main__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals # Execute with diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index ee43435156..dea7d85cd4 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals