(self)
| 94 | ret.append(open(path+self.TEMP,"wb")) |
| 95 | return ret |
| 96 | def update(self): |
| 97 | os.remove(self.pathcons) |
| 98 | open(self.pathcons+self.TEMP,"wb").close() |
| 99 | for path in self.paths: |
| 100 | try: |
| 101 | os.remove(path+self.BACK) |
| 102 | except OSError: |
| 103 | pass |
| 104 | for path in self.paths: |
| 105 | try: |
| 106 | os.rename(path,path+self.BACK) |
| 107 | except OSError: |
| 108 | pass |
| 109 | os.remove(self.pathcons+self.TEMP) |
| 110 | for path in self.paths: |
| 111 | os.rename(path+self.TEMP,path) |
no test coverage detected