mirror of https://github.com/celery/kombu.git
Fix flake8
This commit is contained in:
parent
2187de083c
commit
6577401b71
|
@ -23,7 +23,8 @@ def get_manager(
|
||||||
def get(name: str, val: Any, default: Any) -> Any:
|
def get(name: str, val: Any, default: Any) -> Any:
|
||||||
return (
|
return (
|
||||||
val if val is not None
|
val if val is not None
|
||||||
else opt('manager_%s' % name) or getattr(client, name, None) or default
|
else opt(
|
||||||
|
'manager_%s' % name) or getattr(client, name, None) or default
|
||||||
)
|
)
|
||||||
|
|
||||||
host = get('hostname', hostname, 'localhost')
|
host = get('hostname', hostname, 'localhost')
|
||||||
|
|
Loading…
Reference in New Issue