Fix Python warning in merge_mozilla_files
This commit is contained in:
parent
d21fc40115
commit
7f492529a8
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ def main():
|
||||||
|
|
||||||
html = str(response.read(), 'utf-8')
|
html = str(response.read(), 'utf-8')
|
||||||
xpi_url = json.loads(
|
xpi_url = json.loads(
|
||||||
'"' + re.match('.*(https:[^"]+\.xpi)', html, flags=re.DOTALL).group(1) + '"'
|
'"' + re.match('.*(https:[^"]+\\.xpi)', html, flags=re.DOTALL).group(1) + '"'
|
||||||
)
|
)
|
||||||
file_name = xpi_url.split("/")[-1]
|
file_name = xpi_url.split("/")[-1]
|
||||||
pack_file = os.path.join(pack_dir, file_name)
|
pack_file = os.path.join(pack_dir, file_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue