blob: 81e6099cfbd7c9a12ad56aef772578b96c5742f6 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 5b0d1212d661e9a8a36738279fc9109f96eebd25 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: Mark Hatle <mark.hatle@windriver.com>
3Date: Wed, 21 Sep 2011 20:55:33 -0500
4Subject: [PATCH] Lib/cgi.py: Update the script as mentioned in the comment
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005
6Upstream-Status: Inappropriate [distribution]
7
8Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9
Brad Bishop19323692019-04-05 15:28:33 -040010---
11 Lib/cgi.py | 11 +----------
12 1 file changed, 1 insertion(+), 10 deletions(-)
13
14diff --git a/Lib/cgi.py b/Lib/cgi.py
Andrew Geissler595f6302022-01-24 19:11:47 +000015index 6cb8cf2..a873ff3 100755
Brad Bishop19323692019-04-05 15:28:33 -040016--- a/Lib/cgi.py
17+++ b/Lib/cgi.py
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018@@ -1,13 +1,4 @@
19-#! /usr/local/bin/python
20-
21-# NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is
22-# intentionally NOT "/usr/bin/env python". On many systems
23-# (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
24-# scripts, and /usr/local/bin is the default directory where Python is
25-# installed, so /usr/bin/env would be unable to find python. Granted,
26-# binary installations by Linux vendors often install Python in
27-# /usr/bin. So let those vendors patch cgi.py to match their choice
28-# of installation.
29+#! /usr/bin/env python
30
31 """Support module for CGI (Common Gateway Interface) scripts.
32