Skip to content

Commit 5450656

Browse files
committed
Add 'fix_python_hashbang.patch'
1 parent e45dd6b commit 5450656

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Description: lintian shows "python-script-but-no-python-dep" when "python2" is
2+
used in the hasbang. It can be changed to "python", as long Python 2 is the
3+
default interpreter (instead of Python 3).
4+
Author: Tiago Ilieve <tiago.ilieve@gmail.com>
5+
6+
--- a/pythonpy/__main__.py
7+
+++ b/pythonpy/__main__.py
8+
@@ -1,4 +1,4 @@
9+
-#!/usr/bin/env python2
10+
+#!/usr/bin/env python
11+
from __future__ import (unicode_literals, absolute_import,
12+
print_function, division)
13+
import sys
14+
--- a/pythonpy/pycompleter.py
15+
+++ b/pythonpy/pycompleter.py
16+
@@ -1,4 +1,4 @@
17+
-#!/usr/bin/env python2
18+
+#!/usr/bin/env python
19+
from __future__ import (unicode_literals, absolute_import,
20+
print_function, division)
21+
import sys

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
remove_entry_points_scripts.patch
22
remove_find_pycompletion.patch
3+
fix_python_hashbang.patch

0 commit comments

Comments
 (0)