[OE-core] [python3][PATCH] scripts/lnr: update for python3
Allen Wild
allenwild93 at gmail.com
Sun May 29 18:49:49 UTC 2016
Change shebang line to python3 and add parentheses to print
Signed-off-by: Allen Wild <allenwild93 at gmail.com>
---
scripts/lnr | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/lnr b/scripts/lnr
index 9dacebe..5fed780 100755
--- a/scripts/lnr
+++ b/scripts/lnr
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
# Create a *relative* symlink, just like ln --relative does but without needing
# coreutils 8.16.
@@ -6,7 +6,7 @@
import sys, os
if len(sys.argv) != 3:
- print "$ lnr TARGET LINK_NAME"
+ print("$ lnr TARGET LINK_NAME")
sys.exit(1)
target = sys.argv[1]
--
2.8.3
More information about the Openembedded-core
mailing list