IMPALA-14498: Fix a bug in initial code review checks

When conducting a code review using flake8-diff, it may fail in some code sections
due to the use of non-raw strings. This patch modifies one instance to successfully
pass the initial code review. Although it is currently working, it may not cover
all instances.

Change-Id: I71889a117c64500bab13928971a2bce063a72cd4
Reviewed-on: http://gerrit.cloudera.org:8080/23656
Reviewed-by: Quanlong Huang <huangquanlong@gmail.com>
Tested-by: Quanlong Huang <huangquanlong@gmail.com>
This commit is contained in:
ttttttz
2025-11-10 23:13:21 +08:00
committed by Quanlong Huang
parent d09940b5dd
commit 75c639c9cd

View File

@@ -41,7 +41,7 @@ IMPALA_LOCAL_VERSION_INFO = os.path.join(IMPALA_HOME, "bin/version.info")
if os.path.isfile(IMPALA_LOCAL_VERSION_INFO):
with open(IMPALA_LOCAL_VERSION_INFO) as f:
for line in f:
match = re.match("VERSION: ([^\s]*)\n", line)
match = re.match(r"VERSION: ([^\s]*)\n", line)
if match:
IMPALA_LOCAL_BUILD_VERSION = match.group(1)
if IMPALA_LOCAL_BUILD_VERSION is None: