def clean(self): if self.safeFile: forceDeleteFile(self.safeFile) self.safeFile = None if self.testFile: forceDeleteFile(self.testFile) self.testFile = None
def clean(self): if self.localFile: forceDeleteFile(self.safeFile) self.safeFile = None if self.remoteFile: try: self.remoteFile.call('close') except KeyboardInterrupt: raise except Exception: pass try: self.remoteFile.call('delete') except KeyboardInterrupt: raise except Exception: pass self.remoteFile = None
def clean(self): if self.testFile: forceDeleteFile(self.testFile) self.testFile = None