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
RSpecVersion.todict() needs to turn values() into a list()
[sfa.git]
/
sfa
/
client
/
return_value.py
diff --git
a/sfa/client/return_value.py
b/sfa/client/return_value.py
index
034dcd8
..
c2c4f47
100644
(file)
--- a/
sfa/client/return_value.py
+++ b/
sfa/client/return_value.py
@@
-16,7
+16,7
@@
class ReturnValue(dict):
@staticmethod
def get_key_value(key, return_value):
- if isinstance(return_value, dict) and
return_value.has_key(key)
:
+ if isinstance(return_value, dict) and
key in return_value
:
return return_value.get(key)
else:
return return_value