Skip to content

Commit d57845c

Browse files
committed
Also fix regex in poify
1 parent b3500e5 commit d57845c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msg2po/poify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def poify(poify_dir: str, encoding: str = CONFIG.encoding):
7373
if os.path.sep == "\\":
7474
full_name = full_name.replace("\\", "/")
7575

76-
full_name = re.sub("^\./", "", full_name) # remove trailing './'
76+
full_name = re.sub(r"^\./", "", full_name) # remove trailing './'
7777

7878
# skip female cuts
79-
pretty_dir_name = re.sub("^\./", "", dir_name)
79+
pretty_dir_name = re.sub(r"^\./", "", dir_name)
8080
if extract_format == "sfall" and pretty_dir_name == "cuts_female":
8181
print("{} is in cuts_female. Skipping!".format(full_name))
8282
continue

0 commit comments

Comments
 (0)