File: 0002-Remove-unneeded-script-and-change-shebang.patch

package info (click to toggle)
pyjokes 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 472 kB
  • sloc: python: 387; makefile: 4
file content (37 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (3)
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
From: Ethan Ward <ethan.ward@mycroft.ai>
Date: Mon, 21 Aug 2017 20:13:31 -0500
Subject: Remove unneeded script and change shebang

---
 scripts/pyjoke  |  2 +-
 scripts/pyjokes | 11 -----------
 2 files changed, 1 insertion(+), 12 deletions(-)
 delete mode 100755 scripts/pyjokes

diff --git a/scripts/pyjoke b/scripts/pyjoke
index cc90d9a..72a8472 100755
--- a/scripts/pyjoke
+++ b/scripts/pyjoke
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import os
 import argparse
diff --git a/scripts/pyjokes b/scripts/pyjokes
deleted file mode 100755
index c1c07c0..0000000
--- a/scripts/pyjokes
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-
-
-def main():
-    print('Did you mean pyjoke?')
-    return 1
-
-if __name__ == '__main__':
-    sys.exit(main())