Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1016)

Side by Side Diff: chrome/common/extensions/docs/server2/file_system.py

Issue 26538009: Docserver: make file_system a property of Create (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: niggles Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698