Skip to contentSkip to conversation

scripts/lnr: update for python3

PATCH New Allen Wild 1 participant 1 message May 29, 2016

lore
Share & tools
lore

Allen Wild

author
#0 lore raw

PATCH 1/1 scripts/lnr: update for python3

Change shebang line to python3 and add parentheses to print

---
 scripts/lnr | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/lnr +2 -2
index 9dacebe..5fed780 100755
@@ -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]
Signature · 1 line
2.8.3