diff options
author | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2010-11-10 17:53:13 +0100 |
---|---|---|
committer | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2010-11-10 17:53:13 +0100 |
commit | 9dda4d681ecb3a769b39223ca723f98157071335 (patch) | |
tree | a07b43009f54c610397f00a045daea2ee9a3b537 /cache.py | |
parent | 710a3d8fd205b88c2ba4174e9eb564a1efae8234 (diff) | |
download | logilab-common-9dda4d681ecb3a769b39223ca723f98157071335.tar.gz |
Add a progress context manager.
It take the same argument than ProgressBar and return a ProgressBAr object on
__enter__
The context manager could be enabled or disable at init. If disabled the
progress bar object return a Mock object that won't print anything and doesn't
required the code handling the progress bar object to change.
The progress bar is propertly finished on __exit__
Diffstat (limited to 'cache.py')
0 files changed, 0 insertions, 0 deletions