Skip to content

Commit f664837

Browse files
committed
remove workaround for TruffleFile.stat on an empty file
1 parent ab8c9de commit f664837

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,6 @@ long fileTimeToSeconds(FileTime t) {
576576
}
577577

578578
Object stat(VirtualFrame frame, String path, boolean followSymlinks) {
579-
if (path.isEmpty()) {
580-
throw raiseOSError(frame, OSErrorEnum.ENOENT);
581-
}
582579
try {
583580
return statInternal(path, followSymlinks);
584581
} catch (Exception e) {

0 commit comments

Comments
 (0)