Skip to content

Commit a81f4a4

Browse files
committed
fix python format
1 parent 021dcd1 commit a81f4a4

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
(() => {'''
@@ -1154,7 +1154,7 @@ def generate_js(data_target, data_files, metadata):
11541154
ret += '''
11551155
}
11561156
loadPackage(%s);\n''' % json.dumps(metadata)
1157-
1157+
11581158
if options.modularize and not options.from_emcc:
11591159
ret += '''
11601160
});'''
@@ -1167,7 +1167,7 @@ def generate_js(data_target, data_files, metadata):
11671167
(() => {
11681168
var real_createModule = createModule;
11691169
1170-
createModule = function (moduleArg) {
1170+
createModule = function (moduleArg) {
11711171
if (new.target) throw new Error("createModule() should not be called with `new createModule()`");
11721172
return real_createModule(moduleArg);
11731173
}

0 commit comments

Comments
 (0)