Skip to content

Commit 0a2672e

Browse files
committed
[GR-23695] Remove workaround for TruffleFile.stat on an empty file.
PullRequest: graalpython/1110
2 parents 3fe8383 + f664837 commit 0a2672e

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)