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

package info (click to toggle)
buildbot 3.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,772 kB
  • sloc: python: 145,602; javascript: 11,856; sh: 1,020; makefile: 325
file content (29 lines) | stat: -rw-r--r-- 1,017 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
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 cc18054..796c914 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