summaryrefslogtreecommitdiffstats
path: root/test/test-network-registration
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2014-03-11 17:39:20 +0100
committerDenis Kenzior <denkenz@gmail.com>2014-03-11 19:33:04 -0500
commit5bf5cf8ddd83f632aa85ddbdc6c2dec075854e75 (patch)
tree4f04a181fc6a028de3695895a0b62d027a47f346 /test/test-network-registration
parent0393a41e3589380b701dc73fc15fa90a24d7e55a (diff)
downloadofono-5bf5cf8ddd83f632aa85ddbdc6c2dec075854e75.tar.bz2
test: Replace obsolete has_key() with "in"
In order to also work with Python 3
Diffstat (limited to 'test/test-network-registration')
-rwxr-xr-xtest/test-network-registration4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-network-registration b/test/test-network-registration
index 5d3f75e3..9410ae6e 100755
--- a/test/test-network-registration
+++ b/test/test-network-registration
@@ -47,11 +47,11 @@ if __name__ == "__main__":
print("Status is: '%s', Operator Name is: '%s'" %\
(props['Status'], props['Name']))
- if props.has_key('LocationAreaCode') and props.has_key('CellId'):
+ if 'LocationAreaCode' in props and 'CellId' in props:
print("Location: '%d', Cell: '%d'" %\
(props['LocationAreaCode'], props['CellId']))
- if props.has_key('Technology'):
+ if 'Technology' in props:
print("Technology: '%s'" % (props['Technology']))
try: