Skip to content

Commit ae8521c

Browse files
committed
Correcting OSError implementation.
1 parent 06d4197 commit ae8521c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/lib-graalpython/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def OSError__new__(subtype, *args, **kwds):
165165
def OSError__init__(self, *args, **kwds):
166166
if (not _oserror_use_init(type(self))):
167167
return None
168-
_oserror_init(self, *arg)
168+
_oserror_init(self, *args)
169169

170170
def OSError__str__(self):
171171
if (self.filename):
@@ -175,7 +175,7 @@ def OSError__str__(self):
175175
return "[Errno %i] %s: %s" % (self.errno, self.strerror, self.filename)
176176
if(self.errno and self.strerror):
177177
return "[Errno %i] %s" % (self.errno, self.strerror)
178-
return BaseException.str(self)
178+
return BaseException.__str__(self)
179179

180180
OSError.__new__ = OSError__new__
181181
OSError.__init__ = OSError__init__

0 commit comments

Comments
 (0)