Lines Matching refs:self
51 def __init__(self): argument
52 self.line = ""
54 def write(self,msg): argument
55 self.line += msg
58 def get(self): argument
59 return self.line
123 def __init__(self): argument
124 self.old_files = set()
125 self.new_files = set()
126 self.new_data = {}
128 def readFile(self,path): argument
131 self.old_files.add(path)
133 def readDir(self,path): argument
138 self.old_files.add(dst)
140 def editFile(self,dst,data): argument
151 self.old_files.remove(dst)
156 self.new_data[dst] = data
157 self.new_files.add(dst)
160 def getChanges(self): argument
166 for dst in self.new_files:
167 if not (dst in self.old_files):
172 for dst in self.old_files:
173 if not dst in self.new_files:
178 def _writeFile(self,dst): argument
182 f.write(self.new_data[dst])
185 def updateFiles(self): argument
186 adds, deletes, edits = self.getChanges()
189 self._writeFile(dst)
192 self._writeFile(dst)
197 def updateGitFiles(self): argument
198 adds, deletes, edits = self.getChanges()
202 self._writeFile(dst)
210 self._writeFile(dst)