diff options
| author | Darja Shakhray <dshakhray@mirantis.com> | 2015-07-20 17:29:49 +0300 |
|---|---|---|
| committer | Darja Shakhray <dshakhray@mirantis.com> | 2015-07-21 17:08:27 +0300 |
| commit | ec0f2dfd8500d230895e286462aaf69c43777038 (patch) | |
| tree | d3ef94392fe49f222f07a7e33cb2a371185f95f5 /glanceclient/common/progressbar.py | |
| parent | d9d586942bf3f78ba174eb5832f60d80a7c839ca (diff) | |
| download | python-glanceclient-ec0f2dfd8500d230895e286462aaf69c43777038.tar.gz | |
Enable flake8 checks
This commit enables new flake8 checks:
* E265 block comment should start with '# '
* H405 multi line docstring summary not separated with an empty line
* E123 closing bracket does not match indentation of opening bracket's line
* H238 old style class declaration, use new style (inherit from `object`)
* E128 continuation line under-indented for visual indent
and makes related changes in the code.
Change-Id: Ie993afc930f6b74d7a990bcaa9fc0e9f5ba1585c
Diffstat (limited to 'glanceclient/common/progressbar.py')
| -rw-r--r-- | glanceclient/common/progressbar.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/glanceclient/common/progressbar.py b/glanceclient/common/progressbar.py index cd4ffe5..d372e5c 100644 --- a/glanceclient/common/progressbar.py +++ b/glanceclient/common/progressbar.py @@ -20,8 +20,9 @@ import six class _ProgressBarBase(object): """ - Base abstract class used by specific class wrapper to show a progress bar - when the wrapped object are consumed. + + Base abstract class used by specific class wrapper to show + a progress bar when the wrapped object are consumed. :param wrapped: Object to wrap that hold data to be consumed. :param totalsize: The total size of the data in the wrapped object. @@ -51,8 +52,9 @@ class _ProgressBarBase(object): class VerboseFileWrapper(_ProgressBarBase): """ - A file wrapper that show and advance a progress bar whenever file's read - method is called. + + A file wrapper that show and advance a progress bar + whenever file's read method is called. """ def read(self, *args, **kwargs): @@ -69,9 +71,9 @@ class VerboseFileWrapper(_ProgressBarBase): class VerboseIteratorWrapper(_ProgressBarBase): """ + An iterator wrapper that show and advance a progress bar whenever data is consumed from the iterator. - :note: Use only with iterator that yield strings. """ |
