From c10083a0166969ec5474fd8a92cfd35cf0536ffe Mon Sep 17 00:00:00 2001 From: Vitalii Koriakov Date: Fri, 26 Oct 2018 13:18:28 +0300 Subject: Using a raw strings for fixing flake warnings Change-Id: Ie134790ea05919a4b396657c11cbc3fc7a7fc529 Signed-off-by: Vitalii Koriakov --- glustolibs-gluster/glustolibs/gluster/lib_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 glustolibs-gluster/glustolibs/gluster/lib_utils.py (limited to 'glustolibs-gluster/glustolibs/gluster/lib_utils.py') diff --git a/glustolibs-gluster/glustolibs/gluster/lib_utils.py b/glustolibs-gluster/glustolibs/gluster/lib_utils.py old mode 100644 new mode 100755 index 682152f5f..44ac6e3f3 --- a/glustolibs-gluster/glustolibs/gluster/lib_utils.py +++ b/glustolibs-gluster/glustolibs/gluster/lib_utils.py @@ -247,7 +247,7 @@ def get_pathinfo(mnode, filename, volname): umount_volume(mnode, mount_point) g.run(mnode, "rm -rf " + mount_point) - return re.findall(".*?POSIX.*?:(\S+)\>", pathinfo) + return re.findall(r".*?POSIX.*?:(\S+)\>", pathinfo) def list_files(mnode, dir_path, parse_str="", user="root"): @@ -815,7 +815,7 @@ def is_core_file_created(nodes, testrun_timestamp, g.log.info("checking core file created or not") for file1 in dir_list: if (re.search(r'\bcore\.[\S]+\b', file1)): - file_path_list = re.split('[\s]+', cmd) + file_path_list = re.split(r'[\s]+', cmd) file_path = file_path_list[1] + '/' + file1 time_cmd = 'stat ' + '-c ' + '%X ' + file_path ret, file_timestamp, _ = g.run(node, time_cmd) -- cgit