Skip to content

Commit 31ff629

Browse files
committed
_io.open raises a NotImplementedError instead of returning None
- the method should not be called before the _post_init builtin is imported
1 parent afa02f2 commit 31ff629

File tree

1 file changed

+1
-1
lines changed
  • graalpython/lib-graalpython

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ class TextIOWrapper(_TextIOBase):
672672

673673
def open(*args, **kwargs):
674674
# this method will be overwritten in _patches
675-
pass
675+
raise NotImplementedError
676676

677677

678678
# set the builtins open method

0 commit comments

Comments
 (0)