[virt-tools-list] [PATCH 06/17] progress: Resolve E261
Radostin Stoyanov
rstoyanov1 at gmail.com
Thu Oct 25 12:37:47 UTC 2018
E261: at least two spaces before inline comment
Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
virtinst/progress.py | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/virtinst/progress.py b/virtinst/progress.py
index 21d6b206..82c191fe 100644
--- a/virtinst/progress.py
+++ b/virtinst/progress.py
@@ -29,7 +29,7 @@ def terminal_width(fd=1):
return 80
# Add minimum too?
return ret
- except: # IOError
+ except: # IOError
return 80
@@ -93,7 +93,7 @@ class TerminalLine:
class BaseMeter:
def __init__(self):
- self.update_period = 0.3 # seconds
+ self.update_period = 0.3 # seconds
self.filename = None
self.url = None
@@ -226,8 +226,8 @@ def _term_add_bar(tl, bar_max_length, pc):
def _term_add_end(tl, osize, size):
- if osize: # osize should be None or >0, but that's been broken.
- if size > osize: # Is ??? better? Really need something to say < vs >.
+ if osize: # osize should be None or >0, but that's been broken.
+ if size > osize: # Is ??? better? Really need something to say < vs >.
return tl.add(' !!! '), True
elif size != osize:
return tl.add(' ... '), True
@@ -477,14 +477,14 @@ def format_time(seconds, use_hours=0):
def format_number(number, SI=0, space=' '):
"""Turn numbers into human-readable metric-like numbers"""
symbols = ['', # (none)
- 'k', # kilo
- 'M', # mega
- 'G', # giga
- 'T', # tera
- 'P', # peta
- 'E', # exa
- 'Z', # zetta
- 'Y'] # yotta
+ 'k', # kilo
+ 'M', # mega
+ 'G', # giga
+ 'T', # tera
+ 'P', # peta
+ 'E', # exa
+ 'Z', # zetta
+ 'Y'] # yotta
if SI:
step = 1000.0
--
2.17.2
More information about the virt-tools-list
mailing list