mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-01-24 12:47:05 +00:00
Fixed FURB110 (if-exp-instead-of-or-operator): Replace ternary if
expression with or
operator
This commit is contained in:
parent
93099ce8d8
commit
11899920b7
@ -1114,7 +1114,7 @@ class ConsoleOutput(FileOutput):
|
||||
class BufferedOutput:
|
||||
# Record all of the instance method calls so we can play them back later.
|
||||
def __init__(self, with_lines=None):
|
||||
self.buf = with_lines if with_lines else []
|
||||
self.buf = with_lines or []
|
||||
def __getattr__(self, attr):
|
||||
if attr not in {"add_heading", "print_ok", "print_error", "print_warning", "print_block", "print_line"}:
|
||||
raise AttributeError
|
||||
|
Loading…
Reference in New Issue
Block a user