Try to import all modules below a given root
Project description
A context for writing a file which leaves it unchanged if an exception is thrown.
Example:
with safe_writer(filename) as fp:
for line in source():
print(line, file=fp)
# If there's an exception in the block, then `filename` is reverted
# to its initial state
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
safe_writer-0.9.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for safe_writer-0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34d85145cf2a4f9074d460f0b595a1e0921682ef45820cfb80e781aae8c74932 |
|
MD5 | 19e286653efaa9be4ec560e38ca1186c |
|
BLAKE2b-256 | cd81ba4f1c987a4a05687a98537872278084e15636147cff9911bccbbf24f2cc |