Commit e0ed2d75 authored by Serhiy Storchaka's avatar Serhiy Storchaka

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.
parent 09421f82
File mode changed from 100755 to 100644
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
#!/usr/bin/env python
#
#### ####
# Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu> # Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
# #
......
#!/usr/bin/env python
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# Copyright (c) 1997-2001 by Total Control Software # Copyright (c) 1997-2001 by Total Control Software
# All Rights Reserved # All Rights Reserved
......
#!/usr/bin/env python
#
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
# A test suite for the table interface built on bsddb.db # A test suite for the table interface built on bsddb.db
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
......
#! /usr/bin/env python
""" """
Module difflib -- helpers for computing deltas between objects. Module difflib -- helpers for computing deltas between objects.
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
#! /usr/bin/env python
"""Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.""" """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes."""
# Notes for authors of new mailbox subclasses: # Notes for authors of new mailbox subclasses:
......
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*- # -*- coding: iso-8859-1 -*-
#------------------------------------------------------------------- #-------------------------------------------------------------------
# tarfile.py # tarfile.py
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
#! /usr/bin/env python
import unittest import unittest
from test import test_support from test import test_support
import __future__ import __future__
......
#! /usr/bin/env python
"""Whimpy test script for the al module """Whimpy test script for the al module
Roger E. Masse Roger E. Masse
""" """
......
#! /usr/bin/env python
"""Test script for the anydbm module """Test script for the anydbm module
based on testdumbdbm.py based on testdumbdbm.py
""" """
......
#! /usr/bin/env python
"""Test the arraymodule. """Test the arraymodule.
Roger E. Masse Roger E. Masse
""" """
......
#! /usr/bin/env python
"""Test script for the binhex C module """Test script for the binhex C module
Uses the mechanism of the python binhex module Uses the mechanism of the python binhex module
......
#! /usr/bin/env python
"""Test script for the bsddb C module by Roger E. Masse """Test script for the bsddb C module by Roger E. Masse
Adapted to unittest format and expanded scope by Raymond Hettinger Adapted to unittest format and expanded scope by Raymond Hettinger
""" """
......
#!/usr/bin/env python
from test import test_support from test import test_support
from test.test_support import TESTFN, _4G, bigmemtest, import_module, findfile from test.test_support import TESTFN, _4G, bigmemtest, import_module, findfile
......
#! /usr/bin/env python
"""Whimpy test script for the cd module """Whimpy test script for the cd module
Roger E. Masse Roger E. Masse
""" """
......
#! /usr/bin/env python
"""Whimpy test script for the cl module """Whimpy test script for the cl module
Roger E. Masse Roger E. Masse
""" """
......
#!/usr/bin/env python
""" """
Test script for the 'cmd' module Test script for the 'cmd' module
Original by Michael Schneider Original by Michael Schneider
......
#!/usr/bin/env python
# #
# test_codecencodings_cn.py # test_codecencodings_cn.py
# Codec encoding tests for PRC encodings. # Codec encoding tests for PRC encodings.
......
#!/usr/bin/env python
# #
# test_codecencodings_hk.py # test_codecencodings_hk.py
# Codec encoding tests for HongKong encodings. # Codec encoding tests for HongKong encodings.
......
#!/usr/bin/env python
#
# Codec encoding tests for ISO 2022 encodings. # Codec encoding tests for ISO 2022 encodings.
from test import test_support from test import test_support
......
#!/usr/bin/env python
# #
# test_codecencodings_jp.py # test_codecencodings_jp.py
# Codec encoding tests for Japanese encodings. # Codec encoding tests for Japanese encodings.
......
#!/usr/bin/env python
# #
# test_codecencodings_kr.py # test_codecencodings_kr.py
# Codec encoding tests for ROK encodings. # Codec encoding tests for ROK encodings.
......
#!/usr/bin/env python
# #
# test_codecencodings_tw.py # test_codecencodings_tw.py
# Codec encoding tests for ROC encodings. # Codec encoding tests for ROC encodings.
......
#!/usr/bin/env python
# #
# test_codecmaps_cn.py # test_codecmaps_cn.py
# Codec mapping tests for PRC encodings # Codec mapping tests for PRC encodings
......
#!/usr/bin/env python
# #
# test_codecmaps_hk.py # test_codecmaps_hk.py
# Codec mapping tests for HongKong encodings # Codec mapping tests for HongKong encodings
......
#!/usr/bin/env python
# #
# test_codecmaps_jp.py # test_codecmaps_jp.py
# Codec mapping tests for Japanese encodings # Codec mapping tests for Japanese encodings
......
#!/usr/bin/env python
# #
# test_codecmaps_kr.py # test_codecmaps_kr.py
# Codec mapping tests for ROK encodings # Codec mapping tests for ROK encodings
......
#!/usr/bin/env python
# #
# test_codecmaps_tw.py # test_codecmaps_tw.py
# Codec mapping tests for ROC encodings # Codec mapping tests for ROC encodings
......
#! /usr/bin/env python
"""Test dlmodule.c """Test dlmodule.c
Roger E. Masse revised strategy by Barry Warsaw Roger E. Masse revised strategy by Barry Warsaw
""" """
......
#! /usr/bin/env python
"""Test script for the dumbdbm module """Test script for the dumbdbm module
Original by Roger E. Masse Original by Roger E. Masse
""" """
......
#! /usr/bin/env python
"""test script for a few new invalid token catches""" """test script for a few new invalid token catches"""
import unittest import unittest
......
#! /usr/bin/env python
"""Test the errno module """Test the errno module
Roger E. Masse Roger E. Masse
""" """
......
#! /usr/bin/env python
"""Very simple test script for the SGI gl library extension module """Very simple test script for the SGI gl library extension module
taken mostly from the documentation. taken mostly from the documentation.
Roger E. Masse Roger E. Masse
......
#! /usr/bin/env python
"""Test script for the gzip module. """Test script for the gzip module.
""" """
......
#! /usr/bin/env python
"""Test script for the imageop module. This has the side """Test script for the imageop module. This has the side
effect of partially testing the imgfile module as well. effect of partially testing the imgfile module as well.
Roger E. Masse Roger E. Masse
......
#! /usr/bin/env python
"""Simple test script for imgfile.c """Simple test script for imgfile.c
Roger E. Masse Roger E. Masse
""" """
......
#!/usr/bin/env python
#
# Copyright 2001-2013 by Vinay Sajip. All Rights Reserved. # Copyright 2001-2013 by Vinay Sajip. All Rights Reserved.
# #
# Permission to use, copy, modify, and distribute this software and its # Permission to use, copy, modify, and distribute this software and its
......
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*- # -*- coding: iso-8859-1 -*-
from test import test_support from test import test_support
......
#!/usr/bin/env python
#
# test_multibytecodec.py # test_multibytecodec.py
# Unit test for multibytecodec itself # Unit test for multibytecodec itself
# #
......
#!/usr/bin/env python
#
# test_multibytecodec_support.py # test_multibytecodec_support.py
# Common Unittest Routines for CJK codecs # Common Unittest Routines for CJK codecs
# #
......
#!/usr/bin/env python
# #
# Unit tests for the multiprocessing package # Unit tests for the multiprocessing package
# #
......
#! /usr/bin/env python
"""Basic tests for os.popen() """Basic tests for os.popen()
Particularly useful for platforms that fake popen. Particularly useful for platforms that fake popen.
......
#! /usr/bin/env python
"""Test script for popen2.py""" """Test script for popen2.py"""
import warnings import warnings
......
#!/usr/bin/env python
import unittest import unittest
import random import random
import time import time
......
#!/usr/bin/env python
import unittest, operator, copy, pickle, random import unittest, operator, copy, pickle, random
from test import test_support from test import test_support
......
#!/usr/bin/env python
import unittest import unittest
from test import test_support from test import test_support
import smtplib import smtplib
......
#!/usr/bin/env python
import unittest import unittest
from test import test_support from test import test_support
......
#!/usr/bin/env python
import unittest import unittest
import sys import sys
import os import os
......
#!/usr/bin/env python
import urlparse import urlparse
import urllib2 import urllib2
import BaseHTTPServer import BaseHTTPServer
......
#!/usr/bin/env python
import unittest import unittest
from test import test_support from test import test_support
from test.test_urllib2 import sanepathname2url from test.test_urllib2 import sanepathname2url
......
#!/usr/bin/env python
import unittest import unittest
from test import test_support from test import test_support
......
#! /usr/bin/env python
from test import test_support from test import test_support
import unittest import unittest
import urlparse import urlparse
......
#!/usr/bin/env python
# UserString is a wrapper around the native builtin string type. # UserString is a wrapper around the native builtin string type.
# UserString instances should behave similar to builtin string objects. # UserString instances should behave similar to builtin string objects.
......
#! /usr/bin/env python
"""Test script for the whichdb module """Test script for the whichdb module
based on test_anydbm.py based on test_anydbm.py
""" """
......
#!/usr/bin/env python
"""Unit tests for the with statement specified in PEP 343.""" """Unit tests for the with statement specified in PEP 343."""
......
File mode changed from 100644 to 100755
#! /usr/bin/env python
"""Token constants (from "token.h").""" """Token constants (from "token.h")."""
# This file is automatically generated; please don't muck it up! # This file is automatically generated; please don't muck it up!
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100755 to 100644
File mode changed from 100644 to 100755
...@@ -152,6 +152,14 @@ Library ...@@ -152,6 +152,14 @@ Library
- Issue #19286: Directories in ``package_data`` are no longer added to - Issue #19286: Directories in ``package_data`` are no longer added to
the filelist, preventing failure outlined in the ticket. the filelist, preventing failure outlined in the ticket.
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.
IDLE IDLE
---- ----
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100755 to 100644
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment