From 153ce40b129669cec7fb38068f5dda610b427ccd Mon Sep 17 00:00:00 2001 From: Kyle Benesch <4b796c65+github@gmail.com> Date: Mon, 15 Jan 2024 22:29:48 -0800 Subject: [PATCH] Update Python shebangs --- build_libtcod.py | 2 +- build_sdl.py | 2 +- docs/tcod/getting-started.rst | 4 ++-- examples/audio_tone.py | 2 +- examples/cavegen.py | 2 +- examples/distribution/PyInstaller/main.py | 2 +- examples/distribution/cx_Freeze/main.py | 2 +- examples/distribution/cx_Freeze/setup.py | 2 +- examples/eventget.py | 2 +- examples/framerate.py | 2 +- examples/samples_tcod.py | 2 +- examples/thread_jobs.py | 2 +- examples/ttf.py | 2 +- scripts/generate_charmap_table.py | 2 +- scripts/get_release_description.py | 2 +- scripts/tag_release.py | 2 +- setup.py | 2 +- 17 files changed, 18 insertions(+), 18 deletions(-) diff --git a/build_libtcod.py b/build_libtcod.py index 59447e9f..00b6036f 100755 --- a/build_libtcod.py +++ b/build_libtcod.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """Parse and compile libtcod and SDL sources for CFFI.""" from __future__ import annotations diff --git a/build_sdl.py b/build_sdl.py index 0c46df14..56fa87de 100755 --- a/build_sdl.py +++ b/build_sdl.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """Build script to parse SDL headers and generate CFFI bindings.""" from __future__ import annotations diff --git a/docs/tcod/getting-started.rst b/docs/tcod/getting-started.rst index c7634149..7d5ec175 100644 --- a/docs/tcod/getting-started.rst +++ b/docs/tcod/getting-started.rst @@ -21,7 +21,7 @@ integer increments. Example:: - #!/usr/bin/env python3 + #!/usr/bin/env python # Make sure 'dejavu10x10_gs_tc.png' is in the same directory as this script. import tcod.console import tcod.context @@ -89,7 +89,7 @@ clearing the console every frame and replacing it only on resizing the window. Example:: - #!/usr/bin/env python3 + #!/usr/bin/env python import tcod.context import tcod.event diff --git a/examples/audio_tone.py b/examples/audio_tone.py index dc24d3ec..052f8a39 100755 --- a/examples/audio_tone.py +++ b/examples/audio_tone.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """Shows how to use tcod.sdl.audio to play a custom-made audio stream. Opens an audio device using SDL and plays a square wave for 1 second. diff --git a/examples/cavegen.py b/examples/cavegen.py index eedf0575..4ae22ac3 100755 --- a/examples/cavegen.py +++ b/examples/cavegen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """A basic cellular automata cave generation example using SciPy. http://www.roguebasin.com/index.php?title=Cellular_Automata_Method_for_Generating_Random_Cave-Like_Levels diff --git a/examples/distribution/PyInstaller/main.py b/examples/distribution/PyInstaller/main.py index e1c6090d..51e31e79 100755 --- a/examples/distribution/PyInstaller/main.py +++ b/examples/distribution/PyInstaller/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # To the extent possible under law, the libtcod maintainers have waived all # copyright and related or neighboring rights for the "hello world" PyInstaller # example script. This work is published from: United States. diff --git a/examples/distribution/cx_Freeze/main.py b/examples/distribution/cx_Freeze/main.py index 8f608af7..0c85ca83 100755 --- a/examples/distribution/cx_Freeze/main.py +++ b/examples/distribution/cx_Freeze/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """cx_Freeze main script example.""" import tcod.console import tcod.context diff --git a/examples/distribution/cx_Freeze/setup.py b/examples/distribution/cx_Freeze/setup.py index 446a0f42..50a588db 100755 --- a/examples/distribution/cx_Freeze/setup.py +++ b/examples/distribution/cx_Freeze/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python import sys from cx_Freeze import Executable, setup # type: ignore diff --git a/examples/eventget.py b/examples/eventget.py index 0895e90f..0af84d04 100755 --- a/examples/eventget.py +++ b/examples/eventget.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # To the extent possible under law, the libtcod maintainers have waived all # copyright and related or neighboring rights for this example. This work is # published from: United States. diff --git a/examples/framerate.py b/examples/framerate.py index 3a9e9f81..a51f83ff 100755 --- a/examples/framerate.py +++ b/examples/framerate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # To the extent possible under law, the libtcod maintainers have waived all # copyright and related or neighboring rights for this example. This work is # published from: United States. diff --git a/examples/samples_tcod.py b/examples/samples_tcod.py index 197a1bc9..f68fed86 100755 --- a/examples/samples_tcod.py +++ b/examples/samples_tcod.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """This code demonstrates various usages of python-tcod.""" # To the extent possible under law, the libtcod maintainers have waived all # copyright and related or neighboring rights to these samples. diff --git a/examples/thread_jobs.py b/examples/thread_jobs.py index f4154f9a..fa99a465 100755 --- a/examples/thread_jobs.py +++ b/examples/thread_jobs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # To the extent possible under law, the libtcod maintainers have waived all # copyright and related or neighboring rights for this example. This work is # published from: United States. diff --git a/examples/ttf.py b/examples/ttf.py index da412b4b..fb0336cb 100755 --- a/examples/ttf.py +++ b/examples/ttf.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """A TrueType Font example using the FreeType library. You will need to get this external library from PyPI: diff --git a/scripts/generate_charmap_table.py b/scripts/generate_charmap_table.py index 0591cb9b..8154b5b8 100755 --- a/scripts/generate_charmap_table.py +++ b/scripts/generate_charmap_table.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """This script is used to generate the tables for `charmap-reference.rst`. Uses the tabulate module from PyPI. diff --git a/scripts/get_release_description.py b/scripts/get_release_description.py index 7d47d9f9..547f8ca6 100755 --- a/scripts/get_release_description.py +++ b/scripts/get_release_description.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """Print the description used for GitHub Releases.""" from __future__ import annotations diff --git a/scripts/tag_release.py b/scripts/tag_release.py index 70b77fb7..2d528306 100755 --- a/scripts/tag_release.py +++ b/scripts/tag_release.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """Automate tagged releases of this project.""" from __future__ import annotations diff --git a/setup.py b/setup.py index dc2139e7..4027fbae 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """Python-tcod setup script.""" from __future__ import annotations