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
open() instead of file()
[sfa.git]
/
clientbin
/
sfiAddSliver.py
diff --git
a/clientbin/sfiAddSliver.py
b/clientbin/sfiAddSliver.py
index
84ffa8b
..
6e6042c
100755
(executable)
--- a/
clientbin/sfiAddSliver.py
+++ b/
clientbin/sfiAddSliver.py
@@
-21,15
+21,15
@@
if not command.opts.nodefile:
sys.exit(1)
if command.opts.infile:
sys.exit(1)
if command.opts.infile:
- infile
=file
(command.opts.infile)
+ infile
= open
(command.opts.infile)
else:
else:
- infile
=
sys.stdin
+ infile
=
sys.stdin
if command.opts.outfile:
if command.opts.outfile:
- outfile
=file
(command.opts.outfile,"w")
+ outfile
= open
(command.opts.outfile,"w")
else:
else:
- outfile
=
sys.stdout
+ outfile
=
sys.stdout
ad_rspec = RSpec(infile)
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
version_manager = VersionManager()
try:
type = ad_rspec.version.type