X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=clientbin%2FsfiAddLinks.py;fp=clientbin%2FsfiAddLinks.py;h=b16cae6a3eb4c034439bf973e999b4ac922cec09;hb=5a6cbf4fa6837c81354b616d4cfa0352ec5367be;hp=2e667b1bfe204e62269d8fc69c4422a7b73e9aaf;hpb=93a10471fd19e79b977b7655acac2fac9bd5e5fe;p=sfa.git diff --git a/clientbin/sfiAddLinks.py b/clientbin/sfiAddLinks.py index 2e667b1b..b16cae6a 100755 --- a/clientbin/sfiAddLinks.py +++ b/clientbin/sfiAddLinks.py @@ -21,15 +21,15 @@ if not command.opts.linkfile: sys.exit(1) if command.opts.infile: - infile=file(command.opts.infile) + infile = open(command.opts.infile) else: - infile=sys.stdin + infile = sys.stdin if command.opts.outfile: - outfile=file(command.opts.outfile,"w") + outfile = open(command.opts.outfile, "w") else: - outfile=sys.stdout + outfile = sys.stdout ad_rspec = RSpec(infile) -links = file(command.opts.linkfile).read().split('\n') +links = open(command.opts.linkfile).read().split('\n') link_tuples = map(lambda x: tuple(x.split()), links) version_manager = VersionManager()