1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-05 05:47:00 +03:00

Use python3 not python

As per https://peps.python.org/pep-0394/, the python binary can be one
of the following options:
- Python 2
- Python 3
- Not exist

All of the scripts in libxml2 use 'python', which may not exist.

As Python 2 reached EOL on the 1st January 2020, it's safe to move the
scripts to use python3 explicitly.
This commit is contained in:
Ross Burton 2022-12-06 21:40:01 +00:00
parent ff49041c62
commit 4762c85668
61 changed files with 61 additions and 61 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
### ###
# #
# build_glob.py : Build the global_functions.h and global_functions.c # build_glob.py : Build the global_functions.h and global_functions.c

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import time import time
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import time import time
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import time import time
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import time import time
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import time import time
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# This is the API builder, it parses the C sources and build the # This is the API builder, it parses the C sources and build the
# API formal description in XML. # API formal description in XML.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Indexes the examples and build an XML description # Indexes the examples and build an XML description
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Portions of this script have been (shamelessly) stolen from the # Portions of this script have been (shamelessly) stolen from the
# prior work of Daniel Veillard (genUnicode.py) # prior work of Daniel Veillard (genUnicode.py)

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Original script modified in November 2003 to take advantage of # Original script modified in November 2003 to take advantage of
# the character-validation range routines, and updated to the # the character-validation range routines, and updated to the

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# generate a tester program for the API # generate a tester program for the API
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# generate python wrappers from the XML API description # generate python wrappers from the XML API description
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# Setup script for libxml2 and libxslt if found # Setup script for libxml2 and libxslt if found
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# This test exercise the redirection of error messages with a # This test exercise the redirection of error messages with a
# functions defined in Python. # functions defined in Python.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# This test exercise the redirection of error messages with a # This test exercise the redirection of error messages with a
# functions defined in Python. # functions defined in Python.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2
try: try:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: ISO-8859-1 -*- # -*- coding: ISO-8859-1 -*-
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# This tests custom input callbacks # This tests custom input callbacks
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this test exercise the XPath basic engine, parser, etc, and # this test exercise the XPath basic engine, parser, etc, and
# allows to detect memory leaks # allows to detect memory leaks

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2
try: try:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: ISO-8859-1 -*- # -*- coding: ISO-8859-1 -*-
# #
# this tests the basic APIs of the XmlTextReader interface # this tests the basic APIs of the XmlTextReader interface

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# this tests the DTD validation with the XmlTextReader interface # this tests the DTD validation with the XmlTextReader interface

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this tests the entities substitutions with the XmlTextReader interface # this tests the entities substitutions with the XmlTextReader interface
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this tests the basic APIs of the XmlTextReader interface # this tests the basic APIs of the XmlTextReader interface
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this tests the Expand() API of the xmlTextReader interface # this tests the Expand() API of the xmlTextReader interface
# this extract the Dragon bibliography entries from the XML specification # this extract the Dragon bibliography entries from the XML specification

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this tests the entities substitutions with the XmlTextReader interface # this tests the entities substitutions with the XmlTextReader interface
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this tests the entities substitutions with the XmlTextReader interface # this tests the entities substitutions with the XmlTextReader interface
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this tests the entities substitutions with the XmlTextReader interface # this tests the entities substitutions with the XmlTextReader interface
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this tests the basic APIs of the XmlTextReader interface # this tests the basic APIs of the XmlTextReader interface
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: ISO-8859-1 -*- # -*- coding: ISO-8859-1 -*-
# #
# this tests the next API of the XmlTextReader interface # this tests the next API of the XmlTextReader interface

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
# Memory debug specific # Memory debug specific

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2
try: try:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import string, sys, time import string, sys, time
try: try:
from _thread import get_ident from _thread import get_ident

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys, unittest import sys, unittest
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
try: try:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import libxml2 import libxml2
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this tests the entities substitutions with the XmlTextReader interface # this tests the entities substitutions with the XmlTextReader interface
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# this test exercise the XPath basic engine, parser, etc, and # this test exercise the XPath basic engine, parser, etc, and
# allows to detect memory leaks # allows to detect memory leaks

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys, libxml2 import sys, libxml2
libxml2.debugMemory(True) libxml2.debugMemory(True)

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
import libxml2 import libxml2

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# This is the MS subset of the W3C test suite for XML Schemas. # This is the MS subset of the W3C test suite for XML Schemas.