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.3.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for safe_writer-0.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94fe9c425ff0afedb7cc23cffbc913b78b1f7a1af7ad23f87558a5728e4ba0b6 |
|
MD5 | 4941158389fbfa91af92165f159e36b2 |
|
BLAKE2b-256 | ae20cc5da93aa0114a9ed91f3f2f647341d3208752bda62785f5dd08f977a6ba |