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:
@@ -23,47 +23,41 @@ class COLORS_ANSI:
|
||||
VERBOSE = False
|
||||
COLORS = COLORS_DUMMY
|
||||
|
||||
|
||||
class DefaultLoggerProvider:
|
||||
def HEADER(self, *args):
|
||||
print(COLORS.HEADER + COLORS.BOLD, end="")
|
||||
print(*args, end="")
|
||||
print(COLORS.ENDC)
|
||||
|
||||
|
||||
def WARNING(self, *args):
|
||||
print(COLORS.WARNING + COLORS.BOLD, end="")
|
||||
print(*args, end="")
|
||||
print(COLORS.ENDC)
|
||||
|
||||
|
||||
def ERROR(self, *args):
|
||||
print(COLORS.FAIL + COLORS.BOLD, end="")
|
||||
print(*args, end="")
|
||||
print(COLORS.ENDC)
|
||||
|
||||
|
||||
def OK(self, *args):
|
||||
print(COLORS.OKGREEN + COLORS.BOLD, end="")
|
||||
print(*args, end="")
|
||||
print(COLORS.ENDC)
|
||||
|
||||
|
||||
def BOLD(self, *args):
|
||||
print(COLORS.BOLD, end="")
|
||||
print(*args, end="")
|
||||
print(COLORS.ENDC)
|
||||
|
||||
|
||||
def INFO(self, *args):
|
||||
print(*args)
|
||||
|
||||
|
||||
def DEBUG(self, *args):
|
||||
# TODO(sergey): Add check that debug is enabled.
|
||||
if False:
|
||||
print(*args)
|
||||
|
||||
|
||||
def FATAL(self, *args):
|
||||
import sys
|
||||
ERROR(*args)
|
||||
@@ -72,6 +66,7 @@ class DefaultLoggerProvider:
|
||||
|
||||
LOGGER_PROVIDER = DefaultLoggerProvider()
|
||||
|
||||
|
||||
def HEADER(*args):
|
||||
LOGGER_PROVIDER.HEADER(*args)
|
||||
|
||||
|
Reference in New Issue
Block a user