Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2012-01-26 08:59:52 +0000
committerAnton Leherbauer2012-01-26 08:59:52 +0000
commitafd9a45d5af37286c9e6101cbb409d99e277bea3 (patch)
tree447f183ffce3761208ac61f8330a67cb584d2aff /python/src/tcf/services/remote/DiagnosticsProxy.py
parent0c07df5f2a70a3af20dd8b1bd8f6a628b5085fbc (diff)
downloadorg.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/services/remote/DiagnosticsProxy.py')
-rw-r--r--python/src/tcf/services/remote/DiagnosticsProxy.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/python/src/tcf/services/remote/DiagnosticsProxy.py b/python/src/tcf/services/remote/DiagnosticsProxy.py
index 944533ab6..9c1c63b70 100644
--- a/python/src/tcf/services/remote/DiagnosticsProxy.py
+++ b/python/src/tcf/services/remote/DiagnosticsProxy.py
@@ -25,11 +25,11 @@ class DiagnosticsProxy(diagnostics.DiagnosticsService):
def __init__(self):
super(EchoCommand, self).__init__(service.channel, service, "echo", (s,))
def done(self, error, args):
- str = None
+ result = None
if not error:
assert len(args) == 1
- str = args[0]
- done.doneEcho(self.token, error, str)
+ result = args[0]
+ done.doneEcho(self.token, error, result)
return EchoCommand().token
def echoFP(self, n, done):
@@ -63,12 +63,12 @@ class DiagnosticsProxy(diagnostics.DiagnosticsService):
super(EchoERRCommand, self).__init__(service.channel, service, "echoERR", (map,))
def done(self, error, args):
err = None
- str = None
+ result = None
if not error:
assert len(args) == 2
err = self.toError(args[0])
- str = args[1]
- done.doneEchoERR(self.token, error, err, str)
+ result = args[1]
+ done.doneEchoERR(self.token, error, err, result)
return EchoERRCommand().token
def getTestList(self, done):
@@ -93,12 +93,12 @@ class DiagnosticsProxy(diagnostics.DiagnosticsService):
def __init__(self):
super(RunTestCommand, self).__init__(service.channel, service, "runTest", (s,))
def done(self, error, args):
- str = None
+ result = None
if not error:
assert len(args) == 2
error = self.toError(args[0])
- str = args[1]
- done.doneRunTest(self.token, error, str)
+ result = args[1]
+ done.doneRunTest(self.token, error, result)
return RunTestCommand().token
def cancelTest(self, s, done):

Back to the top