Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 class Patcher(object): | |
|
not at google - send to devlin
2013/05/04 06:47:43
need copyright and class comment
方觉(Fang Jue)
2013/05/04 10:47:18
oops. Done.
| |
| 2 def GetPatchedFiles(self): | |
| 3 ''' Returns (added_files, deleted_files, modified_files). | |
| 4 ''' | |
| 5 raise NotImplementedError() | |
| 6 | |
| 7 def GetVersion(self): | |
| 8 ''' Returns patch version. Returns None when nothing is patched by the | |
| 9 pathcer. | |
|
not at google - send to devlin
2013/05/04 06:47:43
patcher
方觉(Fang Jue)
2013/05/04 10:47:18
ah..
| |
| 10 ''' | |
| 11 raise NotImplementedError() | |
| 12 | |
| 13 def Apply(self, paths, file_system, binary): | |
| 14 ''' Apply the patch to added/modified files. Returns Future with patched | |
| 15 data. Throws FileNotFoundError if |paths| contains deleted files. | |
| 16 ''' | |
| 17 raise NotImplementedError() | |
| 18 | |
|
not at google - send to devlin
2013/05/04 06:47:43
trailing \n
方觉(Fang Jue)
2013/05/04 10:47:18
Done.
| |
| OLD | NEW |