File: fix-interpreter-path.diff

package info (click to toggle)
python-asyncprawcore 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,328 kB
  • sloc: python: 2,224; makefile: 4
file content (49 lines) | stat: -rw-r--r-- 1,780 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
Description: Fixed interpreter path to use python3
 This patch fixes the shebang lines in example scripts 
 to use `python3` instead of `python`, ensuring compatibility 
 with systems where `python` does not point to Python 3.

Author: Aryan Karamtoth <spaciouscoder78@disroot.org>
Applied-Upstream: https://github.com/praw-dev/asyncprawcore/commit/6d923201c11c356f11ea47047ab060ec2e09e4c6
Last-Update: 2025-08-08

--- python-asyncprawcore-3.0.2.orig/examples/caching_requestor.py
+++ python-asyncprawcore-3.0.2/examples/caching_requestor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Example program that shows how simple in-memory caching can be used.
 
--- python-asyncprawcore-3.0.2.orig/examples/device_id_auth_trophies.py
+++ python-asyncprawcore-3.0.2/examples/device_id_auth_trophies.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Example program that outputs a user's list of trophies.
 
--- python-asyncprawcore-3.0.2.orig/examples/obtain_refresh_token.py
+++ python-asyncprawcore-3.0.2/examples/obtain_refresh_token.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Example program that demonstrates the flow for retrieving a refresh token.
 
--- python-asyncprawcore-3.0.2.orig/examples/read_only_auth_trophies.py
+++ python-asyncprawcore-3.0.2/examples/read_only_auth_trophies.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Example program that outputs a user's list of trophies.
 
--- python-asyncprawcore-3.0.2.orig/examples/script_auth_friend_list.py
+++ python-asyncprawcore-3.0.2/examples/script_auth_friend_list.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """script_auth_friend_list.py outputs the authenticated user's list of friends.