mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Fix typo in assert statement
This commit is contained in:
parent
eb076ae062
commit
82adeffc13
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
|
|||
struct _Py_stat_struct fdfstat;
|
||||
int async_err = 0;
|
||||
|
||||
assert(PyFileIO_Check(oself));
|
||||
assert(PyFileIO_Check(self));
|
||||
if (self->fd >= 0) {
|
||||
if (self->closefd) {
|
||||
/* Have to close the existing file first. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue