Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import sys | 5 import sys |
| 6 | 6 |
| 7 from file_system import FileSystem, StatInfo, FileNotFoundError | 7 from file_system import FileSystem, StatInfo, FileNotFoundError |
| 8 from future import Future | 8 from future import Future |
| 9 from object_store_creator import ObjectStoreCreator | 9 from object_store_creator import ObjectStoreCreator |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 if not uncached: | 116 if not uncached: |
| 117 return Future(value=results) | 117 return Future(value=results) |
| 118 | 118 |
| 119 return Future(delegate=_AsyncUncachedFuture( | 119 return Future(delegate=_AsyncUncachedFuture( |
| 120 self._file_system.Read(uncached.keys(), binary=binary), | 120 self._file_system.Read(uncached.keys(), binary=binary), |
| 121 uncached, | 121 uncached, |
| 122 results, | 122 results, |
| 123 self, | 123 self, |
| 124 read_object_store)) | 124 read_object_store)) |
| 125 | 125 |
| 126 def GetDebugString(self): | |
| 127 return ' of %s' % self._file_system | |
|
Jeffrey Yasskin
2013/10/14 21:24:17
Did you mean to remove GetDebugString() now that n
not at google - send to devlin
2013/10/14 21:26:28
yes, thanks. Done.
| |
| 128 | |
| 126 def GetIdentity(self): | 129 def GetIdentity(self): |
| 127 return self._file_system.GetIdentity() | 130 return self._file_system.GetIdentity() |
| 131 | |
| 132 def __repr__(self): | |
| 133 return '<%s of %s>' % (type(self).__name__, | |
| 134 type(self._file_system).__name__) | |
| OLD | NEW |