mercurial/cext/osutil.c
changeset 46446 e92ca942ddca
parent 45174 f93a4e3d35ab
child 46819 d4ba4d51f85f
equal deleted inserted replaced
46445:711ba0f1057e 46446:e92ca942ddca
   117 	return t->tp_alloc(t, 0);
   117 	return t->tp_alloc(t, 0);
   118 }
   118 }
   119 
   119 
   120 static void listdir_stat_dealloc(PyObject *o)
   120 static void listdir_stat_dealloc(PyObject *o)
   121 {
   121 {
   122 	o->ob_type->tp_free(o);
   122 	Py_TYPE(o)->tp_free(o);
   123 }
   123 }
   124 
   124 
   125 static PyObject *listdir_stat_getitem(PyObject *self, PyObject *key)
   125 static PyObject *listdir_stat_getitem(PyObject *self, PyObject *key)
   126 {
   126 {
   127 	long index = PyLong_AsLong(key);
   127 	long index = PyLong_AsLong(key);