Skip to content

Commit a6bc307

Browse files
authored
Remove workaround for older python version. NFC (#26016)
The min supported python version is 3.10 as of #25891.
1 parent 22758b8 commit a6bc307

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

emcc.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,7 @@ def get_next_arg():
353353
return newargs[i + 1]
354354

355355
if not arg.startswith('-') or arg == '-':
356-
# os.devnul should always be reported as existing but there is bug in windows
357-
# python before 3.8:
358-
# https://bugs.python.org/issue1311
359-
if not os.path.exists(arg) and arg not in (os.devnull, '-'):
356+
if not os.path.exists(arg) and arg != '-':
360357
exit_with_error('%s: No such file or directory ("%s" was expected to be an input file, based on the commandline arguments provided)', arg, arg)
361358
add_link_arg(arg, True)
362359
elif arg == '-z':

0 commit comments

Comments
 (0)