Uranium
Application Framework
|
A class to handle atomic writes to a file. More...
Public Member Functions | |
__init__ (self, path, mode, encoding="utf-8", **kwargs) | |
__enter__ (self) | |
__exit__ (self, exc_type, exc_value, traceback) | |
Protected Attributes | |
_path | |
_mode | |
_encoding | |
_open_kwargs | |
_file | |
_temp_file | |
A class to handle atomic writes to a file.
This class can be used to perform atomic writes to a file. Atomic writes ensure that the file contents are always correct and that concurrent writes do not end up writing to the same file at the same time.