[gnome-continuous-yocto/gnomeostree-3.28-rocko: 597/8267] scripts/lnr: update for python3
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 597/8267] scripts/lnr: update for python3
- Date: Sat, 16 Dec 2017 20:39:00 +0000 (UTC)
commit fc79776fffa8e15189d3591ef3e291adb39fcb92
Author: Allen Wild <allenwild93 gmail com>
Date: Sun May 29 14:49:49 2016 -0400
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>
scripts/lnr | 4 ++--
1 files 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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]