1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

scripts/lnr: update for python3

Change shebang line to python3 and add parentheses to print

(From OE-Core rev: 85b6a53386382c0d92b5bea545c2db5e0204e629)

Signed-off-by: Allen Wild <allenwild93@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Allen Wild
2016-05-29 14:49:49 -04:00
committed by Richard Purdie
parent 2e388048b6
commit fc79776fff
+2 -2
View File
@@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python3
# Create a *relative* symlink, just like ln --relative does but without needing # Create a *relative* symlink, just like ln --relative does but without needing
# coreutils 8.16. # coreutils 8.16.
@@ -6,7 +6,7 @@
import sys, os import sys, os
if len(sys.argv) != 3: if len(sys.argv) != 3:
print "$ lnr TARGET LINK_NAME" print("$ lnr TARGET LINK_NAME")
sys.exit(1) sys.exit(1)
target = sys.argv[1] target = sys.argv[1]