| 1 |
From: Sergio de Almeida Cipriano Junior <[email protected]> |
| 2 |
Date: Sat, 10 Apr 2021 15:49:09 -0300 |
| 3 |
Subject: Make examples use python3 interpreter always |
| 4 |
Forwarded: not-needed |
| 5 |
|
| 6 |
Fix lintian 'example-unusual-interpreter' by changing python |
| 7 |
shebang to python3. |
| 8 |
|
| 9 |
--- |
| 10 |
examples/async.py | 2 +- |
| 11 |
examples/blockingdns.py | 2 +- |
| 12 |
examples/downloader.py | 2 +- |
| 13 |
examples/fromtwisted.py | 2 +- |
| 14 |
examples/mxquery.py | 2 +- |
| 15 |
examples/scheduling.py | 2 +- |
| 16 |
examples/ssh.py | 2 +- |
| 17 |
examples/testing.py | 2 +- |
| 18 |
8 files changed, 8 insertions(+), 8 deletions(-) |
| 19 |
|
| 20 |
diff --git a/examples/async.py b/examples/async.py |
| 21 |
index 89f4aef..c28b4a0 100644 |
| 22 |
--- a/examples/async.py |
| 23 |
+++ b/examples/async.py |
| 24 |
@@ -1,4 +1,4 @@ |
| 25 |
-#!/usr/bin/python |
| 26 |
+#!/usr/bin/python3 |
| 27 |
""" |
| 28 |
Async/await DNS lookup using Twisted's APIs. |
| 29 |
""" |
| 30 |
diff --git a/examples/blockingdns.py b/examples/blockingdns.py |
| 31 |
index 5239215..24a9f4b 100644 |
| 32 |
--- a/examples/blockingdns.py |
| 33 |
+++ b/examples/blockingdns.py |
| 34 |
@@ -1,4 +1,4 @@ |
| 35 |
-#!/usr/bin/python |
| 36 |
+#!/usr/bin/python3 |
| 37 |
""" |
| 38 |
Do a DNS lookup using Twisted's APIs. |
| 39 |
""" |
| 40 |
diff --git a/examples/downloader.py b/examples/downloader.py |
| 41 |
index 923b1bf..e829ed5 100644 |
| 42 |
--- a/examples/downloader.py |
| 43 |
+++ b/examples/downloader.py |
| 44 |
@@ -1,4 +1,4 @@ |
| 45 |
-#!/usr/bin/python |
| 46 |
+#!/usr/bin/python3 |
| 47 |
""" |
| 48 |
A flask web application that downloads a page in the background. |
| 49 |
""" |
| 50 |
diff --git a/examples/fromtwisted.py b/examples/fromtwisted.py |
| 51 |
index 87efcb9..641720c 100644 |
| 52 |
--- a/examples/fromtwisted.py |
| 53 |
+++ b/examples/fromtwisted.py |
| 54 |
@@ -1,4 +1,4 @@ |
| 55 |
-#!/usr/bin/python |
| 56 |
+#!/usr/bin/python3 |
| 57 |
""" |
| 58 |
An example of using Crochet from a normal Twisted application. |
| 59 |
""" |
| 60 |
diff --git a/examples/mxquery.py b/examples/mxquery.py |
| 61 |
index a438680..72f187c 100644 |
| 62 |
--- a/examples/mxquery.py |
| 63 |
+++ b/examples/mxquery.py |
| 64 |
@@ -1,4 +1,4 @@ |
| 65 |
-#!/usr/bin/python |
| 66 |
+#!/usr/bin/python3 |
| 67 |
""" |
| 68 |
A command-line application that uses Twisted to do an MX DNS query. |
| 69 |
""" |
| 70 |
diff --git a/examples/scheduling.py b/examples/scheduling.py |
| 71 |
index 6606e29..35f2884 100644 |
| 72 |
--- a/examples/scheduling.py |
| 73 |
+++ b/examples/scheduling.py |
| 74 |
@@ -1,4 +1,4 @@ |
| 75 |
-#!/usr/bin/python |
| 76 |
+#!/usr/bin/python3 |
| 77 |
""" |
| 78 |
An example of scheduling time-based events in the background. |
| 79 |
|
| 80 |
diff --git a/examples/ssh.py b/examples/ssh.py |
| 81 |
index d71b582..a37427d 100644 |
| 82 |
--- a/examples/ssh.py |
| 83 |
+++ b/examples/ssh.py |
| 84 |
@@ -1,4 +1,4 @@ |
| 85 |
-#!/usr/bin/python |
| 86 |
+#!/usr/bin/python3 |
| 87 |
""" |
| 88 |
A demonstration of Conch, allowing you to SSH into a running Python server and |
| 89 |
inspect objects at a Python prompt. |
| 90 |
diff --git a/examples/testing.py b/examples/testing.py |
| 91 |
index 7db5696..b1dee0d 100644 |
| 92 |
--- a/examples/testing.py |
| 93 |
+++ b/examples/testing.py |
| 94 |
@@ -1,4 +1,4 @@ |
| 95 |
-#!/usr/bin/python |
| 96 |
+#!/usr/bin/python3 |
| 97 |
""" |
| 98 |
Demonstration of accessing wrapped functions for testing. |
| 99 |
""" |