Skip to content

Commit 4807184

Browse files
committed
fix python format
1 parent 91aedaf commit 4807184

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/file_packager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def has_hidden_attribute(filepath):
160160

161161
try:
162162
attrs = ctypes.windll.kernel32.GetFileAttributesW(
163-
u'%s' % filepath)
163+
'%s' % filepath)
164164
assert attrs != -1
165165
result = bool(attrs & 2)
166166
except Exception:
@@ -633,7 +633,7 @@ def generate_js(data_target, data_files, metadata):
633633
ret += '''
634634
Module['expectedDataFileDownloads'] ??= 0;
635635
Module['expectedDataFileDownloads']++;'''
636-
636+
637637
if not options.modularize and not options.from_emcc:
638638
ret += '''
639639
(() => {'''
@@ -1148,7 +1148,7 @@ def generate_js(data_target, data_files, metadata):
11481148
ret += '''
11491149
}
11501150
loadPackage(%s);\n''' % json.dumps(metadata)
1151-
1151+
11521152
if options.modularize and not options.from_emcc:
11531153
ret += '''
11541154
});'''
@@ -1161,7 +1161,7 @@ def generate_js(data_target, data_files, metadata):
11611161
(() => {
11621162
var real_createModule = createModule;
11631163
1164-
createModule = function (moduleArg) {
1164+
createModule = function (moduleArg) {
11651165
if (new.target) throw new Error("createModule() should not be called with `new createModule()`");
11661166
return real_createModule(moduleArg);
11671167
}

0 commit comments

Comments
 (0)