Skip to content

Commit 7a1cd77

Browse files
committed
fix python format
1 parent 0225cd1 commit 7a1cd77

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
(() => {'''
@@ -1169,7 +1169,7 @@ def generate_js(data_target, data_files, metadata):
11691169
ret += '''
11701170
}
11711171
loadPackage(%s);\n''' % json.dumps(metadata)
1172-
1172+
11731173
if options.modularize and not options.from_emcc:
11741174
ret += '''
11751175
});'''
@@ -1182,7 +1182,7 @@ def generate_js(data_target, data_files, metadata):
11821182
(() => {
11831183
var real_createModule = createModule;
11841184
1185-
createModule = function (moduleArg) {
1185+
createModule = function (moduleArg) {
11861186
if (new.target) throw new Error("createModule() should not be called with `new createModule()`");
11871187
return real_createModule(moduleArg);
11881188
}

0 commit comments

Comments
 (0)