Skip to content

Commit 32fcc4e

Browse files
committed
fix constructor args for _io reader / writer classes
1 parent d1a86c2 commit 32fcc4e

File tree

1 file changed

+24
-7
lines changed
  • graalpython/lib-graalpython

1 file changed

+24
-7
lines changed

graalpython/lib-graalpython/_io.py

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -639,35 +639,52 @@ def __init__(self, inital_bytes=None):
639639

640640

641641
class _TextIOBase(_IOBase):
642-
pass
642+
def __init__(self, *args, **kwargs):
643+
super(_TextIOBase, self).__init__(*args, **kwargs)
643644

644645

645646
class StringIO(_TextIOBase):
646-
pass
647+
def __init__(self, *args, **kwargs):
648+
super(StringIO, self).__init__(*args, **kwargs)
647649

648650

649651
class BufferedReader(_BufferedIOBase):
650-
pass
652+
def __init__(self, *args, **kwargs):
653+
super(BufferedReader, self).__init__(*args, **kwargs)
654+
655+
def _check_init(self):
656+
pass
651657

652658

653659
class BufferedWriter(_BufferedIOBase):
654-
pass
660+
def __init__(self, *args, **kwargs):
661+
super(BufferedWriter, self).__init__(*args, **kwargs)
655662

663+
def _check_init(self):
664+
pass
656665

657666
class BufferedRWPair(_BufferedIOBase):
658-
pass
667+
def __init__(self, *args, **kwargs):
668+
super(BufferedRWPair, self).__init__(*args, **kwargs)
669+
670+
def _check_init(self):
671+
pass
659672

660673

661674
class BufferedRandom(_BufferedIOBase):
662-
pass
675+
def __init__(self, *args, **kwargs):
676+
super(BufferedRandom, self).__init__(*args, **kwargs)
663677

678+
def _check_init(self):
679+
pass
664680

665681
class IncrementalNewlineDecoder(object):
666682
pass
667683

668684

669685
class TextIOWrapper(_TextIOBase):
670-
pass
686+
def __init__(self, *args, **kwargs):
687+
super(TextIOWrapper, self).__init__(*args, **kwargs)
671688

672689

673690
def open(*args, **kwargs):

0 commit comments

Comments
 (0)