File: 0004-explicitly-use-python2.patch

package info (click to toggle)
libpyzy 1.0.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 34,536 kB
  • sloc: python: 23,416; cpp: 20,929; makefile: 346; sql: 94; php: 16; sh: 16
file content (51 lines) | stat: -rw-r--r-- 1,488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From: Boyuan Yang <byang@debian.org>
Date: Fri, 24 Jul 2020 16:04:08 -0400
Subject: explicitly use python2

---
 data/db/android/create_db.py     | 2 +-
 scripts/addheader.py             | 2 +-
 scripts/update-simptrad-table.py | 2 +-
 tools/googlecode_upload.py       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/data/db/android/create_db.py b/data/db/android/create_db.py
index 4fff1d0..37ac1e5 100755
--- a/data/db/android/create_db.py
+++ b/data/db/android/create_db.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
 from pydict import *
 from id import *
 from valid_hanzi import *
diff --git a/scripts/addheader.py b/scripts/addheader.py
index 09e628e..1fab51c 100644
--- a/scripts/addheader.py
+++ b/scripts/addheader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
 import sys
 
 def add_header(name, header):
diff --git a/scripts/update-simptrad-table.py b/scripts/update-simptrad-table.py
index 64d3d45..bf48e1b 100755
--- a/scripts/update-simptrad-table.py
+++ b/scripts/update-simptrad-table.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
 import sys
 sys.path.append(".")
 
diff --git a/tools/googlecode_upload.py b/tools/googlecode_upload.py
index d2d5f97..a95765a 100755
--- a/tools/googlecode_upload.py
+++ b/tools/googlecode_upload.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
 #
 # Copyright 2006, 2007 Google Inc. All Rights Reserved.
 # Author: danderson@google.com (David Anderson)