Commit 26ba7235 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Make __all__ in .client a tuple generated statically

parent 72e44e84
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
#  Copyright 2019  Dom Sekotill <dom.sekotill@kodo.org.uk>
#  Copyright 2019-2021  Dom Sekotill <dom.sekotill@kodo.org.uk>
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
@@ -18,7 +18,12 @@ WPA-Supplicant client classes

from .base import BaseClient
from .consts import *
from .consts import __all__ as _consts_names
from .interfaces import InterfaceClient
from .master import MasterClient

__all__ = list(globals().keys())
__all__ = _consts_names + (
	'BaseClient',
	'MasterClient',
	'InterfaceClient',
)
+3 −3
Original line number Diff line number Diff line
#  Copyright 2019  Dom Sekotill <dom.sekotill@kodo.org.uk>
#  Copyright 2019-2021  Dom Sekotill <dom.sekotill@kodo.org.uk>
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@ RESPONSE_UNKNOWN_COMMAND = "UNKNOWN COMMAND"
CTRL_EVENT_SCAN_RESULTS = "CTRL-EVENT-SCAN-RESULTS"


__all__ = [
__all__ = (
	'COMMAND_PING',
	'COMMAND_ATTACH',
	'COMMAND_DETACH',
@@ -80,4 +80,4 @@ __all__ = [
	'RESPONSE_UNKNOWN_COMMAND',

	'CTRL_EVENT_SCAN_RESULTS',
]
)