| 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 from future import Gettable, Future |    5 from future import Gettable, Future | 
|    6  |    6  | 
|    7  |    7  | 
|    8 class FileNotFoundError(Exception): |    8 class FileNotFoundError(Exception): | 
|    9   '''Raised when a file isn't found for read or stat. |    9   '''Raised when a file isn't found for read or stat. | 
|   10   ''' |   10   ''' | 
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  121  |  121  | 
|  122       yield root[len(basepath):].rstrip('/'), dirs, files |  122       yield root[len(basepath):].rstrip('/'), dirs, files | 
|  123  |  123  | 
|  124       for d in dirs: |  124       for d in dirs: | 
|  125         for walkinfo in walk(root + d): |  125         for walkinfo in walk(root + d): | 
|  126           yield walkinfo |  126           yield walkinfo | 
|  127  |  127  | 
|  128     for walkinfo in walk(root): |  128     for walkinfo in walk(root): | 
|  129       yield walkinfo |  129       yield walkinfo | 
|  130  |  130  | 
|  131   def GetDebugString(self): |  | 
|  132     return '' |  | 
|  133  |  | 
|  134   def __repr__(self): |  131   def __repr__(self): | 
|  135     return '<%s%s>' % (self.__class__.__name__, self.GetDebugString()) |  132     return '<%s>' % type(self).__name__ | 
|  136  |  133  | 
|  137   def __str__(self): |  134   def __str__(self): | 
|  138     return repr(self) |  135     return repr(self) | 
| OLD | NEW |