Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2012-01-20 03:40:14 -0500
committerAnton Leherbauer2012-01-20 03:40:14 -0500
commit132b7988652a23f4ca8bf0a8cdef104b7e3c7a65 (patch)
treef4e164219ac56312b409a131a6cad5a6ce82eea7 /python/src
parent261700e1ddcd4554df66393b8a3ff0ddbefe12ad (diff)
downloadorg.eclipse.tcf-132b7988652a23f4ca8bf0a8cdef104b7e3c7a65.tar.gz
org.eclipse.tcf-132b7988652a23f4ca8bf0a8cdef104b7e3c7a65.tar.xz
org.eclipse.tcf-132b7988652a23f4ca8bf0a8cdef104b7e3c7a65.zip
TCF Python: Fix typos in FileSystemProxy
Diffstat (limited to 'python/src')
-rw-r--r--python/src/tcf/services/remote/FileSystemProxy.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/python/src/tcf/services/remote/FileSystemProxy.py b/python/src/tcf/services/remote/FileSystemProxy.py
index 27e36a8c4..d0a274642 100644
--- a/python/src/tcf/services/remote/FileSystemProxy.py
+++ b/python/src/tcf/services/remote/FileSystemProxy.py
@@ -1,5 +1,5 @@
# *******************************************************************************
-# * Copyright (c) 2011 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
@@ -203,7 +203,7 @@ class FileSystemProxy(filesystem.FileSystemService):
else:
assert len(args) == 2
s = self._toSFError(args[0])
- if not s: h = self._toFileHandle(args[1])
+ if not s: h = service._toFileHandle(args[1])
done.doneOpen(self.token, s, h)
return OpenCommand().token
@@ -221,7 +221,7 @@ class FileSystemProxy(filesystem.FileSystemService):
else:
assert len(args) == 2
s = self._toSFError(args[0])
- if not s: h = self._toFileHandle(args[1])
+ if not s: h = service._toFileHandle(args[1])
done.doneOpen(self.token, s, h)
return OpenDirCommand().token
@@ -458,15 +458,15 @@ def _toObject(attrs):
m = {}
if attrs.attributes is not None: m.update(attrs.attributes)
if (attrs.flags & filesystem.ATTR_SIZE) != 0:
- m.put("Size", attrs.size)
+ m["Size"] = attrs.size
if (attrs.flags & filesystem.ATTR_UIDGID) != 0:
- m.put("UID", attrs.uid)
- m.put("GID", attrs.gid)
+ m["UID"] = attrs.uid
+ m["GID"] = attrs.gid
if (attrs.flags & filesystem.ATTR_PERMISSIONS) != 0:
- m.put("Permissions", attrs.permissions)
+ m["Permissions"] = attrs.permissions
if (attrs.flags & filesystem.ATTR_ACMODTIME) != 0:
- m.put("ATime", attrs.atime)
- m.put("MTime", attrs.mtime)
+ m["ATime"] = attrs.atime
+ m["MTime"] = attrs.mtime
return m
def _toFileAttrs(m):

Back to the top