simplify tmpdir method

This commit is contained in:
2022-06-28 11:55:48 +03:00
parent 26408e82c0
commit 695ef708b6
7 changed files with 15 additions and 57 deletions

View File

@ -31,7 +31,7 @@ Again, the most checks can be performed by `make check` command, though some add
* In case if class load requires some actions, it is recommended to create class method which can be used for class instantiating.
* The code must follow the exception safety, unless it is explicitly asked by end user. It means that most exceptions must be handled and printed to log, no other actions must be done (e.g. raising another exception).
* For the external command `ahriman.core.util.check_output` function must be used.
* Every temporary file/directory must be removed at the end of processing, no matter what. The `ahriman.core.util.tmpdir` function provides wrapper for the directories.
* Every temporary file/directory must be removed at the end of processing, no matter what. The ``tempfile`` module provides good ways to do it.
* Import order must be the following:
```python