diff options
author | Anton Leherbauer | 2012-01-26 08:59:52 +0000 |
---|---|---|
committer | Anton Leherbauer | 2012-01-26 08:59:52 +0000 |
commit | afd9a45d5af37286c9e6101cbb409d99e277bea3 (patch) | |
tree | 447f183ffce3761208ac61f8330a67cb584d2aff /python/src/tcf/transport.py | |
parent | 0c07df5f2a70a3af20dd8b1bd8f6a628b5085fbc (diff) | |
download | org.eclipse.tcf-afd9a45d5af37286c9e6101cbb409d99e277bea3.tar.gz org.eclipse.tcf-afd9a45d5af37286c9e6101cbb409d99e277bea3.tar.xz org.eclipse.tcf-afd9a45d5af37286c9e6101cbb409d99e277bea3.zip |
TCF Python: Fix dangerous assignments to reserved names
Diffstat (limited to 'python/src/tcf/transport.py')
-rw-r--r-- | python/src/tcf/transport.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/src/tcf/transport.py b/python/src/tcf/transport.py index b22b2f9f0..ddfc5d122 100644 --- a/python/src/tcf/transport.py +++ b/python/src/tcf/transport.py @@ -140,18 +140,18 @@ def sync(done): This is internal API, TCF clients should use protocol.sync(). """ - set = set() + tokenSet = set() class DoneSync(locator.DoneSync): def doneSync(self, token): - assert set.contains(token) - set.remove(token) - if len(set) == 0: done() + assert tokenSet.contains(token) + tokenSet.remove(token) + if len(tokenSet) == 0: done() done_sync = DoneSync() for c in _channels: if c.getState() == channel.STATE_OPEN: s = c.getRemoteService(locator.NAME) - if s: set.append(s.sync(done_sync)) - if len(set) == 0: protocol.invokeLater(done) + if s: tokenSet.append(s.sync(done_sync)) + if len(tokenSet) == 0: protocol.invokeLater(done) # initialize TCP transport addTransportProvider(TCPTransportProvider()) |