]> granicus.if.org Git - python/commitdiff
Fix typo in assert statement
authorChristian Heimes <christian@python.org>
Thu, 16 Apr 2015 15:21:54 +0000 (17:21 +0200)
committerChristian Heimes <christian@python.org>
Thu, 16 Apr 2015 15:21:54 +0000 (17:21 +0200)
Modules/_io/fileio.c

index 3c52c802e3e88003d9987906901de88e6b252bb5..145d93adeb156bb51be5e4d5e19e5ebb5f6760a3 100644 (file)
@@ -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. */