Remove the f-strings in the Jupyter web app's backend (kubeflow/kubeflow#5680)

This commit is contained in:
DavidSpek 2021-06-03 18:10:37 +02:00 committed by GitHub
parent 2a0d0c7857
commit 2e5eaa1dc6
4 changed files with 5 additions and 5 deletions

View File

@ -9,9 +9,9 @@ log = logging.getLogger(__name__)
"/api/namespaces/<namespace>/notebooks/<notebook>", methods=["DELETE"]
)
def delete_notebook(notebook, namespace):
log.info(f"Deleting Notebook '{namespace}/{notebook}'")
log.info("Deleting Notebook '%s/%s'" % (namespace, notebook))
api.delete_notebook(notebook, namespace)
return api.success_response(
"message", f"Notebook {notebook} successfully deleted."
"message", "Notebook %s successfully deleted." % notebook
)

View File

@ -13,7 +13,7 @@ log = logging.getLogger(__name__)
@decorators.required_body_params("name")
def post_pvc(namespace):
body = request.get_json()
log.info(f"Got body: {body}")
log.info("Got body: %s" % body)
notebook = helpers.load_param_yaml(
utils.NOTEBOOK_TEMPLATE_YAML,

View File

@ -14,7 +14,7 @@ log = logging.getLogger(__name__)
@decorators.required_body_params("name")
def post_notebook(namespace):
body = request.get_json()
log.info(f"Got body: {body}")
log.info("Got body: %s" % body)
notebook = helpers.load_param_yaml(
utils.NOTEBOOK_TEMPLATE_YAML,

View File

@ -41,7 +41,7 @@ if UI_FLAVOR == "default":
elif UI_FLAVOR == "rok":
app = rok.create_app(APP_NAME, cfg)
else:
log.error(f"No UI flavor for '{UI_FLAVOR}'")
log.error("No UI flavor for '%s'" % UI_FLAVOR)
sys.exit(1)
if __name__ == "__main__":