Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2011-11-07 07:01:32 -0500
committerAnton Leherbauer2011-11-07 07:01:32 -0500
commit0d99bc88e87c39fbb11aa274923741ec359c197d (patch)
treeaa760a6bf20a4132bbcb41f39e5f880bb0b6ec8e
parentafa225657e329e2b99cac93ac0ca80bdd0a944b5 (diff)
downloadorg.eclipse.tcf-0d99bc88e87c39fbb11aa274923741ec359c197d.tar.gz
org.eclipse.tcf-0d99bc88e87c39fbb11aa274923741ec359c197d.tar.xz
org.eclipse.tcf-0d99bc88e87c39fbb11aa274923741ec359c197d.zip
TCF Python: Fixed wrong python API usage
-rw-r--r--python/src/tcf/services/local/LocatorService.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/src/tcf/services/local/LocatorService.py b/python/src/tcf/services/local/LocatorService.py
index 80122c528..5d8f43bc2 100644
--- a/python/src/tcf/services/local/LocatorService.py
+++ b/python/src/tcf/services/local/LocatorService.py
@@ -185,13 +185,13 @@ class LocatorService(locator.LocatorService):
if not LocatorService.addr_request:
service._addr_cache_lock.wait(locator.DATA_RETENTION_PERIOD)
msec = int(time.time() * 1000)
- for a in LocatorService.addr_cache.values():
+ for host, a in LocatorService.addr_cache.items():
if a.time_stamp + locator.DATA_RETENTION_PERIOD * 10 < msec:
if a.used:
if itemSet is None: itemSet = set()
itemSet.add(a)
else:
- LocatorService.addr_cache.remove(a)
+ del LocatorService.addr_cache[host]
LocatorService.addr_request = False
if itemSet is not None:
for a in itemSet:

Back to the top