Lines Matching refs:self
45 def __init__(self): argument
46 self.line = ""
48 def write(self,msg): argument
49 self.line += msg
52 def get(self): argument
53 return self.line
76 def __init__(self): argument
77 self.old_files = set()
78 self.new_files = set()
79 self.new_data = {}
81 def readFile(self,path): argument
84 self.old_files.add(path)
86 def readDir(self,path): argument
91 self.old_files.add(dst)
93 def editFile(self,dst,data): argument
104 self.old_files.remove(dst)
109 self.new_data[dst] = data
110 self.new_files.add(dst)
113 def getChanges(self): argument
119 for dst in self.new_files:
120 if not (dst in self.old_files):
125 for dst in self.old_files:
126 if not dst in self.new_files:
131 def _writeFile(self,dst): argument
135 f.write(self.new_data[dst])
138 def updateFiles(self): argument
139 adds, deletes, edits = self.getChanges()
142 self._writeFile(dst)
145 self._writeFile(dst)
150 def updateGitFiles(self): argument
151 adds, deletes, edits = self.getChanges()
155 self._writeFile(dst)
163 self._writeFile(dst)