summaryrefslogtreecommitdiff
path: root/virtinst/progress.py
diff options
context:
space:
mode:
authorRadostin Stoyanov <rstoyanov1@gmail.com>2018-10-25 13:37:47 +0100
committerCole Robinson <crobinso@redhat.com>2018-11-12 08:34:55 -0500
commitc3453422f2a29203e7c6f64f1f51fbd05366420e (patch)
tree192a2fb31c306f475dd8cc71e0157dcfdd04c44d /virtinst/progress.py
parentcd1a46c2aeaaa0b4ea7008f7c8c2a67f5aaddb7b (diff)
downloadvirt-manager-c3453422f2a29203e7c6f64f1f51fbd05366420e.tar.gz
progress: Resolve E261
E261: at least two spaces before inline comment Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Diffstat (limited to 'virtinst/progress.py')
-rw-r--r--virtinst/progress.py24
1 files 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