We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8304231 commit b9f16b9Copy full SHA for b9f16b9
bazel/emscripten_toolchain/wasm_binary.py
@@ -28,7 +28,7 @@ def main():
28
tar = tarfile.open(args.archive)
29
30
for member in tar.getmembers():
31
- extname = '.' + member.name.split('.', maxsplit=1)[1]
+ extname = '.' + member.name.split('.', 1)[1]
32
for idx, output in enumerate(args.outputs):
33
if output.endswith(extname):
34
member_file = tar.extractfile(member)
@@ -38,7 +38,7 @@ def main():
38
break
39
40
for output in args.outputs:
41
- extname = '.' + output.split('.', maxsplit=1)[1]
+ extname = '.' + output.split('.', 1)[1]
42
print("[ERROR] Archive does not contain file with extname: %s" % extname)
43
44
0 commit comments