Skip to content

Commit 61a8cf8

Browse files
committed
Fix TypeError when building for WebAssembly with Python 3
1 parent 8869d32 commit 61a8cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/js/src/make_umd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def make_umd(opencvjs, cvjs):
103103
Module = {};
104104
return cv(Module);
105105
}));
106-
""" % (content)).lstrip())
106+
""" % (content)).lstrip().encode())
107107

108108
if __name__ == "__main__":
109109
if len(sys.argv) > 2:

0 commit comments

Comments
 (0)