git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
34a85fa
)
use spaces not tabs...
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Thu, 6 Aug 2009 20:06:56 +0000
(20:06 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Thu, 6 Aug 2009 20:06:56 +0000
(20:06 +0000)
sfa/client/setRecord.py
patch
|
blob
|
history
diff --git
a/sfa/client/setRecord.py
b/sfa/client/setRecord.py
index
c3379be
..
4c20444
100755
(executable)
--- a/
sfa/client/setRecord.py
+++ b/
sfa/client/setRecord.py
@@
-47,10
+47,10
@@
def editDict(args, recordDict, options):
replaceDict({vect.split("=")[0]: returnVal(vect.split("=")[1])},
recordDict, options)
else:
replaceDict({vect.split("=")[0]: returnVal(vect.split("=")[1])},
recordDict, options)
else:
-
if vect in recordDict:
-
del recordDict[vect]
-
else:
- raise TypeError, "Argument error: Records are updated with \n" \
+ if vect in recordDict:
+ del recordDict[vect]
+ else:
+
raise TypeError, "Argument error: Records are updated with \n" \
"key=val1,val2,valN or\n" \
"key+=val1,val2,valN \n%s Unknown key/val" % vect
"key=val1,val2,valN or\n" \
"key+=val1,val2,valN \n%s Unknown key/val" % vect