Lines Matching defs:close
193 def close(self):
194 """Flush and close the mailbox."""
298 tmp_file.close()
432 def close(self):
433 """Flush and close the mailbox."""
457 os.close(os.open(maildirfolder_path, os.O_CREAT | os.O_WRONLY,
695 new_file.close()
700 self._file.close()
728 def close(self):
729 """Flush and close the mailbox."""
737 self._file.close() # Sync has been done by self.flush() above.
944 os.close(os.open(os.path.join(self._path, '.mh_sequences'),
967 # Unlock and close so it can be deleted on Windows
995 f.close()
1012 os.close(os.open(path, os.O_WRONLY | os.O_TRUNC))
1111 def close(self):
1112 """Flush and close the mailbox."""
1174 os.close(os.open(f.name, os.O_WRONLY | os.O_TRUNC))
1976 def close(self):
1980 if hasattr(self._file, 'close'):
1981 self._file.close()
1999 self.close()
2056 def close(self):
2057 # do *not* close the underlying file object for partial files,
2079 pre_lock.close()
2118 os.close(fd)
2135 f.close()