Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2012-01-20 03:40:14 -0500
committerAnton Leherbauer2012-01-20 03:42:55 -0500
commit72ab44e3d373a90bd6eabb058db8302d5b4c811d (patch)
tree413b37ef7beeabfe8f18c2f0a531634b1772779a
parent1b4dc78cb6004ef9b1bc2eb9d3cff5fc1e30c6d9 (diff)
downloadorg.eclipse.tcf-72ab44e3d373a90bd6eabb058db8302d5b4c811d.tar.gz
org.eclipse.tcf-72ab44e3d373a90bd6eabb058db8302d5b4c811d.tar.xz
org.eclipse.tcf-72ab44e3d373a90bd6eabb058db8302d5b4c811d.zip
TCF Python: Fix typos in FileSystemProxy
-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