summaryrefslogtreecommitdiffstats
path: root/abs/core/lirc/0013-tools-Make-make_rel_symlink.py-use-python3.patch
blob: 4ef3c158f761e6574c2a65db49dfca38af907c24 (plain)
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
From 4c30c6f87dda6614978dfab69d417ef3ca83dccf Mon Sep 17 00:00:00 2001
From: Alec Leamas <leamas.alec@gmail.com>
Date: Thu, 11 Dec 2014 04:44:49 +0100
Subject: [PATCH 13/13] tools: Make make_rel_symlink.py use python3.

---
 tools/make_rel_symlink.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/make_rel_symlink.py b/tools/make_rel_symlink.py
index 5c89305..896637f 100755
--- a/tools/make_rel_symlink.py
+++ b/tools/make_rel_symlink.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import os.path
@@ -32,16 +32,16 @@ if sys.argv[1] == "-p":
     sys.argv = sys.argv[ 1:]
 
 if len( sys.argv ) != 3:
-    print USAGE
+    print(USAGE)
     sys.exit( 1 )
 
 if  os.path.isdir(  sys.argv[2] ):
-    print "Removing link target dir:" +  sys.argv[2]
+    print("Removing link target dir:" +  sys.argv[2])
     shutil.rmtree( sys.argv[2])
 
 link_path = relative_ln_s( sys.argv[1], sys.argv[2] )
 if just_print:
-    print link_path
+    print(link_path)
 else:
     os.chdir( os.path.dirname( sys.argv[2]))
     target = os.path.basename( sys.argv[2])
-- 
2.2.2