This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 47a9fff5c3 Fix invalid escape sequences in strings in Breeze (#31271)
47a9fff5c3 is described below

commit 47a9fff5c3196f9566468099194b980d3f2826a1
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat May 13 15:22:20 2023 +0200

    Fix invalid escape sequences in strings in Breeze (#31271)
    
    No big impact, slightly better and more correct output.
---
 dev/breeze/src/airflow_breeze/utils/docker_command_utils.py | 2 +-
 dev/breeze/src/airflow_breeze/utils/parallel.py             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py 
b/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
index cda2c485b1..2218a266b2 100644
--- a/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
+++ b/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
@@ -285,7 +285,7 @@ def check_remote_ghcr_io_commands():
             get_console().print(
                 "\n[error]We are extremely sorry but you've hit the rare case 
that the "
                 "credentials you got from GitHub Actions to run are expired, 
and we cannot do much.[/]"
-                "\n¯\_(ツ)_/¯\n\n"
+                "\n¯\\_(ツ)_/¯\n\n"
                 "[warning]You have the following options now:\n\n"
                 "  * Close and reopen the Pull Request of yours\n"
                 "  * Rebase or amend your commit and push your branch again\n"
diff --git a/dev/breeze/src/airflow_breeze/utils/parallel.py 
b/dev/breeze/src/airflow_breeze/utils/parallel.py
index f4772c86b1..2d86e753e8 100644
--- a/dev/breeze/src/airflow_breeze/utils/parallel.py
+++ b/dev/breeze/src/airflow_breeze/utils/parallel.py
@@ -341,7 +341,7 @@ def print_async_summary(completed_list: list[ApplyResult]) 
-> None:
     get_console().print()
     for result in completed_list:
         return_code, info = result.get()
-        info = info.replace("[", "\[")
+        info = info.replace("[", "\\[")
         if return_code != 0:
             get_console().print(f"[error]NOK[/] for {info}: Return code: 
{return_code}.")
         else:

Reply via email to