Пример #1
0
    def clean(self):
        if self.safeFile:
            forceDeleteFile(self.safeFile)
            self.safeFile = None

        if self.testFile:
            forceDeleteFile(self.testFile)
            self.testFile = None
Пример #2
0
 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
Пример #3
0
    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
Пример #4
0
 def clean(self):
     if self.testFile:
         forceDeleteFile(self.testFile)
     self.testFile = None