git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python3 - 2to3 + miscell obvious tweaks
[sfa.git]
/
clientbin
/
sfiAddLinks.py
diff --git
a/clientbin/sfiAddLinks.py
b/clientbin/sfiAddLinks.py
index
f3792b6
..
3f08553
100755
(executable)
--- a/
clientbin/sfiAddLinks.py
+++ b/
clientbin/sfiAddLinks.py
@@
-16,7
+16,7
@@
command.add_linkfile_option()
command.prep()
if not command.opts.linkfile:
command.prep()
if not command.opts.linkfile:
- print
"Missing link list -- exiting"
+ print
("Missing link list -- exiting")
command.parser.print_help()
sys.exit(1)
command.parser.print_help()
sys.exit(1)
@@
-30,7
+30,7
@@
else:
outfile = sys.stdout
ad_rspec = RSpec(infile)
links = open(command.opts.linkfile).read().split('\n')
outfile = sys.stdout
ad_rspec = RSpec(infile)
links = open(command.opts.linkfile).read().split('\n')
-link_tuples =
map(lambda x: tuple(x.split()), links)
+link_tuples =
[tuple(x.split()) for x in links]
version_manager = VersionManager()
try:
version_manager = VersionManager()
try:
@@
-44,5
+44,5
@@
try:
except:
logger.log_exc("sfiAddLinks FAILED with links %s" % links)
sys.exit(1)
except:
logger.log_exc("sfiAddLinks FAILED with links %s" % links)
sys.exit(1)
-print
>>outfile, request_rspec.toxml(
)
+print
(request_rspec.toxml(), file=outfile
)
sys.exit(0)
sys.exit(0)