Skip to content

Commit

Permalink
[cleanup] Point all shebang to python3 (yt-dlp#372)
Browse files Browse the repository at this point in the history
Authored by: fstirlitz
  • Loading branch information
fstirlitz authored and pukkandan committed Jun 5, 2021
1 parent 14b17a5 commit cc52de4
Show file tree
Hide file tree
Showing 49 changed files with 54 additions and 43 deletions.
2 changes: 1 addition & 1 deletion devscripts/bash-completion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

import os
Expand Down
2 changes: 1 addition & 1 deletion devscripts/check-porn.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

"""
Expand Down
2 changes: 1 addition & 1 deletion devscripts/create-github-release.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Unused

#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

import io
Expand Down
2 changes: 1 addition & 1 deletion devscripts/fish-completion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

import optparse
Expand Down
1 change: 1 addition & 0 deletions devscripts/generate_aes_testdata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
from __future__ import unicode_literals

import codecs
Expand Down
2 changes: 1 addition & 1 deletion devscripts/gh-pages/update-copyright.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import with_statement, unicode_literals
Expand Down
1 change: 1 addition & 0 deletions devscripts/lazy_load_template.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
# coding: utf-8
from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion devscripts/make_contributing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

# import io
Expand Down
2 changes: 1 addition & 1 deletion devscripts/make_issue_template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

import io
Expand Down
1 change: 1 addition & 0 deletions devscripts/make_lazy_extractors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
from __future__ import unicode_literals, print_function

from inspect import getsource
Expand Down
5 changes: 5 additions & 0 deletions devscripts/make_readme.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion devscripts/make_supportedsites.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

import io
Expand Down
1 change: 1 addition & 0 deletions devscripts/prepare_manpage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
from __future__ import unicode_literals

import io
Expand Down
2 changes: 1 addition & 1 deletion devscripts/show-downloads-statistics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Unused

#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

import itertools
Expand Down
2 changes: 2 additions & 0 deletions devscripts/update-version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
from __future__ import unicode_literals

from datetime import datetime
# import urllib.request

Expand Down
2 changes: 1 addition & 1 deletion devscripts/zsh-completion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

import os
Expand Down
2 changes: 1 addition & 1 deletion pyinst.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from setuptools import setup, Command, find_packages
Expand Down
2 changes: 1 addition & 1 deletion test/test_InfoExtractor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_YoutubeDL.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion test/test_YoutubeDLCookieJar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion test/test_aes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_age_restriction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

# Allow direct execution
Expand Down
2 changes: 1 addition & 1 deletion test/test_all_urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion test/test_compat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion test/test_download.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_downloader_http.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8
from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_execution.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion test/test_http.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8
from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_iqiyi_sdk_interpreter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_jsinterp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_overwrites.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

import os
Expand Down
2 changes: 1 addition & 1 deletion test/test_post_hooks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_postprocessors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_socks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8
from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_subtitles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

# Allow direct execution
Expand Down
2 changes: 1 addition & 1 deletion test/test_swfinterp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

# Allow direct execution
Expand Down
2 changes: 1 addition & 1 deletion test/test_update.py.disabled
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion test/test_verbose_output.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion test/test_write_annotations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8
from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion test/test_youtube_lists.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

# Allow direct execution
Expand Down
2 changes: 1 addition & 1 deletion test/test_youtube_misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

# Allow direct execution
Expand Down
2 changes: 1 addition & 1 deletion test/test_youtube_signature.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import unicode_literals

Expand Down
2 changes: 1 addition & 1 deletion yt_dlp/YoutubeDL.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import absolute_import, unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion yt_dlp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down
2 changes: 1 addition & 1 deletion yt_dlp/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import unicode_literals

# Execute with
Expand Down
2 changes: 1 addition & 1 deletion yt_dlp/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals
Expand Down

0 comments on commit cc52de4

Please sign in to comment.