Formatting according to PEP-8 using autopep8
I've added a `setup.cfg` file with `[pep8]` section to make it use the 120-char line length limit we have for all Blender/Python scripts.
This commit is contained in:
@@ -3,11 +3,13 @@ import sys
|
||||
|
||||
from . import logger
|
||||
|
||||
|
||||
class DefaultProgressProvider:
|
||||
"""
|
||||
Default progress provider implementation, which draws progress
|
||||
bar in the console, unless current logging is set to evrbose mode.
|
||||
"""
|
||||
|
||||
def progress(self, count, total, prefix="", suffix=""):
|
||||
if logger.VERBOSE:
|
||||
return
|
||||
@@ -29,12 +31,12 @@ class DefaultProgressProvider:
|
||||
sys.stdout.flush()
|
||||
|
||||
def clear(self):
|
||||
if logger.VERBOSE:
|
||||
return
|
||||
if logger.VERBOSE:
|
||||
return
|
||||
|
||||
size = shutil.get_terminal_size((80, 20))
|
||||
sys.stdout.write(" " * size.columns + "\r")
|
||||
sys.stdout.flush()
|
||||
size = shutil.get_terminal_size((80, 20))
|
||||
sys.stdout.write(" " * size.columns + "\r")
|
||||
sys.stdout.flush()
|
||||
|
||||
def step(self, step_name):
|
||||
pass
|
||||
@@ -76,12 +78,15 @@ def step(step_name):
|
||||
def scene(scene_name):
|
||||
PROGRESS_PROVIDER.scene(scene_name)
|
||||
|
||||
|
||||
def scene_stats(scene_name, stats):
|
||||
PROGRESS_PROVIDER.scene_stats(scene_name, stats)
|
||||
|
||||
|
||||
def render_process(process):
|
||||
PROGRESS_PROVIDER.render_process(process)
|
||||
|
||||
|
||||
def is_canceled():
|
||||
return PROGRESS_PROVIDER.is_canceled()
|
||||
|
||||
|
Reference in New Issue
Block a user