mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user