diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index 6bda90657..a68226275 100644 --- a/platypush/backend/http/__init__.py +++ b/platypush/backend/http/__init__.py @@ -192,7 +192,7 @@ class HttpBackend(Backend): """ - _DEFAULT_HTTP_PORT = 8008 + DEFAULT_HTTP_PORT = 8008 """The default listen port for the webserver.""" _STOP_TIMEOUT = 5 @@ -200,7 +200,7 @@ class HttpBackend(Backend): def __init__( self, - port: int = _DEFAULT_HTTP_PORT, + port: int = DEFAULT_HTTP_PORT, bind_address: str = '0.0.0.0', resource_dirs: Optional[Mapping[str, str]] = None, secret_key_file: Optional[str] = None, diff --git a/platypush/backend/http/app/utils/routes.py b/platypush/backend/http/app/utils/routes.py index f7de249da..68a3fd9e1 100644 --- a/platypush/backend/http/app/utils/routes.py +++ b/platypush/backend/http/app/utils/routes.py @@ -14,7 +14,7 @@ def get_http_port(): from platypush.backend.http import HttpBackend http_conf = Config.get('backend.http') or {} - return http_conf.get('port', HttpBackend._DEFAULT_HTTP_PORT) + return http_conf.get('port', HttpBackend.DEFAULT_HTTP_PORT) def get_routes():