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
2to3 -f has_key
[sfa.git]
/
sfa
/
planetlab
/
vlink.py
diff --git
a/sfa/planetlab/vlink.py
b/sfa/planetlab/vlink.py
index
625963d
..
b0a8300
100644
(file)
--- a/
sfa/planetlab/vlink.py
+++ b/
sfa/planetlab/vlink.py
@@
-41,7
+41,7
@@
def get_tc_rate(s):
if m is None:
return -1
suffix = m.group(2).lower()
if m is None:
return -1
suffix = m.group(2).lower()
- if suffix
es.has_key(suffix)
:
+ if suffix
in suffixes
:
return int(float(m.group(1)) * suffixes[suffix])
else:
return -1
return int(float(m.group(1)) * suffixes[suffix])
else:
return -1