File: examples-fix-bad-python-shebang.patch

package info (click to toggle)
buildbot 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,080 kB
  • sloc: python: 174,183; sh: 1,204; makefile: 332; javascript: 119; xml: 16
file content (29 lines) | stat: -rw-r--r-- 1,017 bytes parent folder | download | duplicates (2)
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
From: Robin Jarry <robin@jarry.cc>
Date: Tue, 8 Dec 2020 17:22:50 +0100
Subject: examples: fix bad python shebang

/usr/bin/python is not installed by default. Also, this file is not an
executable script. Remove the shebang.

Signed-off-by: Robin Jarry <robin@jarry.cc>
---
 master/docs/examples/twisted_master.cfg | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/master/docs/examples/twisted_master.cfg b/master/docs/examples/twisted_master.cfg
index 0a98b19..9099950 100644
--- a/master/docs/examples/twisted_master.cfg
+++ b/master/docs/examples/twisted_master.cfg
@@ -1,4 +1,5 @@
-#! /usr/bin/python
+# -*- python -*-
+# ex: set syntax=python:
 
 # NOTE: this configuration file is from the buildbot-0.7.5 era or earlier. It
 # has not been brought up-to-date with the standards of buildbot-0.7.6 . For
@@ -329,3 +330,5 @@ c['status'].append(m)
 c['title'] = "Twisted"
 c['titleURL'] = "http://twistedmatrix.com/"
 c['buildbotURL'] = "http://twistedmatrix.com/buildbot/"
+
+# vim:ft=python