X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=clientbin%2FsfiAddSliver.py;fp=clientbin%2FsfiAddSliver.py;h=6e6042cec59c088527e59bee554f04319aaec640;hp=84ffa8b0301e89b26f5cb848c42c08cabcecc16b;hb=5a6cbf4fa6837c81354b616d4cfa0352ec5367be;hpb=93a10471fd19e79b977b7655acac2fac9bd5e5fe diff --git a/clientbin/sfiAddSliver.py b/clientbin/sfiAddSliver.py index 84ffa8b0..6e6042ce 100755 --- a/clientbin/sfiAddSliver.py +++ b/clientbin/sfiAddSliver.py @@ -21,15 +21,15 @@ if not command.opts.nodefile: 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) -nodes = file(command.opts.nodefile).read().split() +nodes = open(command.opts.nodefile).read().split() version_manager = VersionManager() try: type = ad_rspec.version.type