Skip to content

Commit 1f72aeb

Browse files
committed
fix constructor args for _io in base class
1 parent 32fcc4e commit 1f72aeb

File tree

1 file changed

+8
-25
lines changed
  • graalpython/lib-graalpython

1 file changed

+8
-25
lines changed

graalpython/lib-graalpython/_io.py

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UnsupportedOperation(OSError, ValueError):
3838

3939

4040
class _IOBase(object):
41-
def __init__(self):
41+
def __init__(self, **kwargs):
4242
self.__IOBase_closed = False
4343

4444
def __enter__(self):
@@ -639,52 +639,35 @@ def __init__(self, inital_bytes=None):
639639

640640

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

645644

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

650648

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

658652

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

663-
def _check_init(self):
664-
pass
665656

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

673660

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

678-
def _check_init(self):
679-
pass
680664

681665
class IncrementalNewlineDecoder(object):
682666
pass
683667

684668

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

689672

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

0 commit comments

Comments
 (0)