mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
remove superflous sepchar argument
This commit is contained in:
@@ -437,7 +437,7 @@ def main(args=None):
|
|||||||
if args.func is None:
|
if args.func is None:
|
||||||
return parser.parse_args(["-h"])
|
return parser.parse_args(["-h"])
|
||||||
|
|
||||||
out = Out(sepchar="\u2501", verbosity=args.verbose)
|
out = Out(verbosity=args.verbose)
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
|
|
||||||
if args.inipath is not None and args.func.__name__ not in ("init_cmd", "fmt_cmd"):
|
if args.inipath is not None and args.func.__name__ not in ("init_cmd", "fmt_cmd"):
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ from termcolor import colored
|
|||||||
class Out:
|
class Out:
|
||||||
"""Convenience output printer providing coloring and section formatting."""
|
"""Convenience output printer providing coloring and section formatting."""
|
||||||
|
|
||||||
def __init__(self, sepchar="\u2501", prefix="", verbosity=0):
|
def __init__(self, prefix="", verbosity=0):
|
||||||
self.section_timings = []
|
self.section_timings = []
|
||||||
self.prefix = prefix
|
self.prefix = prefix
|
||||||
self.sepchar = sepchar
|
self.sepchar = "\u2501"
|
||||||
self.verbosity = verbosity
|
self.verbosity = verbosity
|
||||||
env_width = os.environ.get("_CMDEPLOY_WIDTH")
|
env_width = os.environ.get("_CMDEPLOY_WIDTH")
|
||||||
if env_width:
|
if env_width:
|
||||||
@@ -31,7 +31,6 @@ class Out:
|
|||||||
sharing section_timings with the parent.
|
sharing section_timings with the parent.
|
||||||
"""
|
"""
|
||||||
out = Out(
|
out = Out(
|
||||||
sepchar=self.sepchar,
|
|
||||||
prefix=self.prefix + newprefix,
|
prefix=self.prefix + newprefix,
|
||||||
verbosity=self.verbosity,
|
verbosity=self.verbosity,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user