--- Python-3.4.3/Lib/inspect.py.orig 2015-02-25 03:27:44.000000000 -0800 +++ Python-3.4.3/Lib/inspect.py 2015-04-29 10:28:30.607615846 -0700 @@ -2728,7 +2728,7 @@ type(exc).__name__, exc) print(msg, file=sys.stderr) - exit(2) + sys.exit(2) if has_attrs: parts = attrs.split(".") @@ -2738,7 +2738,7 @@ if module.__name__ in sys.builtin_module_names: print("Can't get info for builtin modules.", file=sys.stderr) - exit(1) + sys.exit(1) if args.details: print('Target: {}'.format(target)) --- Python-3.4.3/Lib/test/test_site.py.orig 2015-02-25 03:27:45.000000000 -0800 +++ Python-3.4.3/Lib/test/test_site.py 2015-04-29 13:19:12.264566779 -0700 @@ -445,8 +445,6 @@ stderr = stderr.decode('utf-8') modules = eval(stdout) - self.assertIn('site', modules) - # http://bugs.python.org/issue19205 re_mods = {'re', '_sre', 'sre_compile', 'sre_constants', 'sre_parse'} # _osx_support uses the re module in many placs --- Python-3.4.3/Lib/test/test_venv.py.orig 2015-02-25 03:27:45.000000000 -0800 +++ Python-3.4.3/Lib/test/test_venv.py 2015-04-29 13:07:26.511591574 -0700 @@ -362,7 +362,7 @@ self.fail(msg.format(exc, details)) # Ensure pip is available in the virtual environment envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) - cmd = [envpy, '-Im', 'pip', '--version'] + cmd = [envpy, '-Esm', 'pip', '--version'] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() @@ -379,7 +379,7 @@ # http://bugs.python.org/issue19728 # Check the private uninstall command provided for the Windows # installers works (at least in a virtual environment) - cmd = [envpy, '-Im', 'ensurepip._uninstall'] + cmd = [envpy, '-Esm', 'ensurepip._uninstall'] with EnvironmentVarGuard() as envvars: p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) --- Python-3.4.3/Lib/venv/__init__.py.orig 2015-02-25 03:27:45.000000000 -0800 +++ Python-3.4.3/Lib/venv/__init__.py 2015-04-29 13:05:48.063095836 -0700 @@ -252,7 +252,7 @@ # We run ensurepip in isolated mode to avoid side effects from # environment vars, the current directory and anything else # intended for the global Python environment - cmd = [context.env_exe, '-Im', 'ensurepip', '--upgrade', + cmd = [context.env_exe, '-Esm', 'ensurepip', '--upgrade', '--default-pip'] subprocess.check_output(cmd, stderr=subprocess.STDOUT) --- Python-3.4.3/Misc/python.man.orig 2015-02-25 03:27:45.000000000 -0800 +++ Python-3.4.3/Misc/python.man 2015-04-29 09:01:02.260538570 -0700 @@ -143,11 +143,11 @@ raises an exception. .TP .B \-I -Run Python in isolated mode. This also implies \fB\-E\fP and \fB\-S\fP. In -isolated mode sys.path contains neither the script’s directory nor the user’s -site-packages directory. All PYTHON* environment variables are ignored, too. -Further restrictions may be imposed to prevent the user from injecting -malicious code. +Run Python in isolated mode. This also implies \fB\-E\fP, \fB\-s\fP and +\fB\-S\fP. In isolated mode sys.path contains neither the script’s directory +nor the user’s site-packages directory. All PYTHON* environment variables +are ignored, too. And import of the \fIsite\fP module is disabled. Further +restrictions may be imposed to prevent the user from injecting malicious code. .TP .BI "\-m " module-name Searches --- Python-3.4.3/Modules/main.c.orig 2015-02-25 03:27:46.000000000 -0800 +++ Python-3.4.3/Modules/main.c 2015-04-29 09:02:51.578278232 -0700 @@ -60,7 +60,7 @@ static char *usage_2 = "\ -i : inspect interactively after running script; forces a prompt even\n\ if stdin does not appear to be a terminal; also PYTHONINSPECT=x\n\ --I : isolate Python from the user's environment (implies -E and -s)\n\ +-I : isolate Python from the user's environment (implies -E, -s and -S)\n\ -m mod : run library module as a script (terminates option list)\n\ -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\ -OO : remove doc-strings in addition to the -O optimizations\n\ @@ -413,6 +413,7 @@ case 'I': Py_IsolatedFlag++; Py_NoUserSiteDirectory++; + Py_NoSiteFlag++; Py_IgnoreEnvironmentFlag++; break;