summaryrefslogtreecommitdiff
path: root/gbp/scripts/common/pq.py
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2023-04-25 15:20:41 +0900
committerbiao716.wang <biao716.wang@samsung.com>2023-05-04 13:05:43 +0900
commit95e33623ea4c69c1ce3360904f053d5a1a172ed3 (patch)
tree2427207099742f930570e5a2a500052bacb07908 /gbp/scripts/common/pq.py
parentee0f349b35bf463642ecf845a94a2b5bb54efff3 (diff)
downloadgit-buildpackage-95e33623ea4c69c1ce3360904f053d5a1a172ed3.tar.gz
git-buildpackage-95e33623ea4c69c1ce3360904f053d5a1a172ed3.tar.bz2
git-buildpackage-95e33623ea4c69c1ce3360904f053d5a1a172ed3.zip
fix run error: re.error: bad escape \S at position 7
Change-Id: I6f9e25806b43aa66a1c05cad0d54edbc656f733b Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'gbp/scripts/common/pq.py')
-rw-r--r--gbp/scripts/common/pq.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gbp/scripts/common/pq.py b/gbp/scripts/common/pq.py
index 95516c08..05993d1d 100644
--- a/gbp/scripts/common/pq.py
+++ b/gbp/scripts/common/pq.py
@@ -182,6 +182,7 @@ def patch_path_filter(file_status, exclude_regex=None):
include_paths = []
for file_list in list(file_status.values()):
for fname in file_list:
+ fname = fname.decode()
if not re.match(exclude_regex, fname):
include_paths.append(fname)
else: