summaryrefslogtreecommitdiff
path: root/lang/python21/patches/patch-bj
blob: b2ddbd4b859704e968041ce8dd17a7ea5009ae83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-bj,v 1.1 2006/10/04 21:07:52 rillig Exp $

Without this patch, some Python scripts had their interpreter changed to
python2.1None instead of python2.1.

--- Lib/distutils/command/build_scripts.py.orig	2001-07-30 11:56:31.000000000 +0200
+++ Lib/distutils/command/build_scripts.py	2006-10-04 22:59:10.000000000 +0200
@@ -83,6 +83,8 @@ class build_scripts (Command):
                 if match:
                     adjust = 1
                     post_interp = match.group(1)
+                    if post_interp == None:
+                        post_interp = ""
 
             if adjust:
                 self.announce("copying and adjusting %s -> %s" %