Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
This commit is contained in:
commit
8f8ec92de8
|
@ -1,5 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
|
||||
"""
|
||||
Module difflib -- helpers for computing deltas between objects.
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
|
||||
####
|
||||
# Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
|
||||
#
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
|
||||
"""Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes."""
|
||||
|
||||
# Notes for authors of new mailbox subclasses:
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
"""
|
||||
Operator Interface
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
#
|
||||
# Unit tests for the multiprocessing package
|
||||
#
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# multibytecodec_support.py
|
||||
# Common Unittest Routines for CJK codecs
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
import unittest
|
||||
from test import support
|
||||
import __future__
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Test the arraymodule.
|
||||
Roger E. Masse
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Test script for the binhex C module
|
||||
|
||||
Uses the mechanism of the python binhex module
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
from test import support
|
||||
from test.support import bigmemtest, _4G
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
"""
|
||||
Test script for the 'cmd' module
|
||||
Original by Michael Schneider
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecencodings_cn.py
|
||||
# Codec encoding tests for PRC encodings.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecencodings_hk.py
|
||||
# Codec encoding tests for HongKong encodings.
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
#
|
||||
# Codec encoding tests for ISO 2022 encodings.
|
||||
|
||||
from test import support
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecencodings_jp.py
|
||||
# Codec encoding tests for Japanese encodings.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecencodings_kr.py
|
||||
# Codec encoding tests for ROK encodings.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecencodings_tw.py
|
||||
# Codec encoding tests for ROC encodings.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecmaps_cn.py
|
||||
# Codec mapping tests for PRC encodings
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecmaps_hk.py
|
||||
# Codec mapping tests for HongKong encodings
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecmaps_jp.py
|
||||
# Codec mapping tests for Japanese encodings
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecmaps_kr.py
|
||||
# Codec mapping tests for ROK encodings
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_codecmaps_tw.py
|
||||
# Codec mapping tests for ROC encodings
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Test script for the dbm.open function based on testdumbdbm.py"""
|
||||
|
||||
import os
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Test script for the dumbdbm module
|
||||
Original by Roger E. Masse
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
"""test script for a few new invalid token catches"""
|
||||
|
||||
import unittest
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Test the errno module
|
||||
Roger E. Masse
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Test script for the gzip module.
|
||||
"""
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""Unit tests for the keyword only argument specified in PEP 3102."""
|
||||
|
||||
__author__ = "Jiwon Seo"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
#
|
||||
# Copyright 2001-2013 by Vinay Sajip. All Rights Reserved.
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software and its
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from test import support
|
||||
import array
|
||||
import io
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# test_multibytecodec.py
|
||||
# Unit test for multibytecodec itself
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
"""Basic tests for os.popen()
|
||||
|
||||
Particularly useful for platforms that fake popen.
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import unittest
|
||||
import unittest.mock
|
||||
import random
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import queue
|
||||
import sched
|
||||
import time
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import unittest
|
||||
from test import support
|
||||
import smtplib
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import unittest
|
||||
from test import support
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import importlib
|
||||
import shutil
|
||||
import sys
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import unittest
|
||||
import sys
|
||||
import os
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import email
|
||||
import urllib.parse
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import unittest
|
||||
from test import support
|
||||
from test.test_urllib2 import sanepathname2url
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import unittest
|
||||
from test import support
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#! /usr/bin/env python3
|
||||
|
||||
from test import support
|
||||
import unittest
|
||||
import urllib.parse
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
# UserString is a wrapper around the native builtin string type.
|
||||
# UserString instances should behave similar to builtin string objects.
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""Unit tests for the with statement specified in PEP 343."""
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import collections.abc
|
||||
import errno
|
||||
import socket
|
||||
|
|
|
@ -88,6 +88,12 @@ Tests
|
|||
Tools/Demos
|
||||
-----------
|
||||
|
||||
- Issue #19936: Added executable bits or shebang lines to Python scripts which
|
||||
requires them. Disable executable bits and shebang lines in test and
|
||||
benchmark files in order to prevent using a random system python, and in
|
||||
source files of modules which don't provide command line interface. Fixed
|
||||
shebang lines in the unittestgui and checkpip scripts.
|
||||
|
||||
- Issue #20268: Argument Clinic now supports cloning the parameters and
|
||||
return converter of existing functions.
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Argument Clinic
|
||||
# Copyright 2012-2013 by Larry Hastings.
|
||||
# Licensed to the PSF under a contributor agreement.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#/usr/bin/env python3
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Checks that the version of the projects bundled in ensurepip are the latest
|
||||
versions available.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
GUI framework and application for use with Python unit testing framework.
|
||||
Execute tests written using the framework provided by the 'unittest' module.
|
||||
|
|
Loading…
Reference in New Issue