From cbd01590fb7842c0bc5ccb1a7fd4244c16bf5f24 Mon Sep 17 00:00:00 2001 From: Charles Beauville Date: Wed, 10 Apr 2024 19:05:40 +0200 Subject: [PATCH] Replace spaces with underscores --- src/py/flwr/cli/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/flwr/cli/utils.py b/src/py/flwr/cli/utils.py index 6e41abd1492e..a01a4fa49303 100644 --- a/src/py/flwr/cli/utils.py +++ b/src/py/flwr/cli/utils.py @@ -103,7 +103,7 @@ def sanitize_project_name(name: str) -> str: ensures it starts with a valid character. """ # Replace '-' with '_' - name_with_underscores = name.replace("-", "_") + name_with_underscores = name.replace("-", "_").replace(" ", "_") # Allowed characters in a module name: letters, digits, underscore allowed_chars = set(