diff options
| author | Allen Wild <allenwild93@gmail.com> | 2016-05-29 14:49:49 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-01 12:47:10 +0100 |
| commit | fc79776fffa8e15189d3591ef3e291adb39fcb92 (patch) | |
| tree | ae3e44f3e0e0f74e90a8e562924749a333510920 | |
| parent | 2e388048b61f6029bae1913cbb546ac40b9cfe51 (diff) | |
| download | poky-fc79776fffa8e15189d3591ef3e291adb39fcb92.tar.gz | |
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>
| -rwxr-xr-x | scripts/lnr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lnr b/scripts/lnr index 9dacebe095..5fed780eb2 100755 --- a/scripts/lnr +++ b/scripts/lnr | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #! /usr/bin/env python | 1 | #! /usr/bin/env python3 |
| 2 | 2 | ||
| 3 | # Create a *relative* symlink, just like ln --relative does but without needing | 3 | # Create a *relative* symlink, just like ln --relative does but without needing |
| 4 | # coreutils 8.16. | 4 | # coreutils 8.16. |
| @@ -6,7 +6,7 @@ | |||
| 6 | import sys, os | 6 | import sys, os |
| 7 | 7 | ||
| 8 | if len(sys.argv) != 3: | 8 | if len(sys.argv) != 3: |
| 9 | print "$ lnr TARGET LINK_NAME" | 9 | print("$ lnr TARGET LINK_NAME") |
| 10 | sys.exit(1) | 10 | sys.exit(1) |
| 11 | 11 | ||
| 12 | target = sys.argv[1] | 12 | target = sys.argv[1] |
