File: 001-fix-interpreter-examples.patch

package info (click to toggle)
python-pylatex 1.4.2%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,044 kB
  • sloc: python: 3,810; sh: 209; makefile: 169; xml: 12
file content (141 lines) | stat: -rw-r--r-- 3,240 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Description: Fixing unusual interpreter specified in the examples.
Author: Pulak Bhushan <pulakbhushan@gmail.com>
Forwarded: not-needed
Last-Update: 2024-02-15

--- a/examples/basic.py
+++ b/examples/basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows basic document generation functionality.
 
--- a/examples/basic_inheritance.py
+++ b/examples/basic_inheritance.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows basic document generation functionality by inheritance.
 
--- a/examples/config.py
+++ b/examples/config.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows basic document generation functionality.
 
--- a/examples/environment_ex.py
+++ b/examples/environment_ex.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 Wrapping existing LaTeX environments with the Environment class.
 
--- a/examples/full.py
+++ b/examples/full.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example demonstrates several features of PyLaTeX.
 
--- a/examples/header.py
+++ b/examples/header.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows the functionality of the PageHeader object.
 
--- a/examples/lists.py
+++ b/examples/lists.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 """
 This example shows list functionality.
--- a/examples/longtable.py
+++ b/examples/longtable.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows the functionality of the longtable element.
 
--- a/examples/matplotlib_ex.py
+++ b/examples/matplotlib_ex.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows matplotlib functionality.
 
--- a/examples/minipage.py
+++ b/examples/minipage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows the functionality of the MiniPage element.
 
--- a/examples/multirow.py
+++ b/examples/multirow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows how multirow and multicolumns can be used.
 
--- a/examples/numpy_ex.py
+++ b/examples/numpy_ex.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows numpy functionality.
 
--- a/examples/own_commands_ex.py
+++ b/examples/own_commands_ex.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 How to represent your own LaTeX commands and environments in PyLaTeX.
 
--- a/examples/quantities_ex.py
+++ b/examples/quantities_ex.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows quantities functionality.
 
--- a/examples/subfigure.py
+++ b/examples/subfigure.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows subfigure functionality.
 
--- a/examples/tikzdraw.py
+++ b/examples/tikzdraw.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows TikZ drawing capabilities.
 
--- a/examples/textblock.py
+++ b/examples/textblock.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 """
 This example shows the functionality of the TextBlock element.