[oe-commits] [openembedded-core] branch python3 updated: scripts/lnr: update for python3

git at git.openembedded.org git at git.openembedded.org
Mon May 30 22:00:32 UTC 2016


rpurdie pushed a commit to branch python3
in repository openembedded-core.

The following commit(s) were added to refs/heads/python3 by this push:
       new  f2b785f   scripts/lnr: update for python3
f2b785f is described below

commit f2b785f1c8cb31e90db7b8b34ea2083555f17297
Author: Allen Wild <allenwild93 at gmail.com>
AuthorDate: Sun May 29 14:49:49 2016 -0400

    scripts/lnr: update for python3
    
    Change shebang line to python3 and add parentheses to print
    
    Signed-off-by: Allen Wild <allenwild93 at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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]

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list