Commits

John Mulligan  committed bde75f8

fix iterating on DirIter types

  • Participants
  • Parent commits 96fb13b

Comments (0)

Files changed (1)

File fsnix/fslib.c

 
     fslib_diriter_type.tp_new = fslib_diriter_new;
     fslib_diriter_type.tp_methods = fslib_diriter_methods;
+    fslib_diriter_type.tp_iter = (getiterfunc)fslib_diriter_iter;
+    fslib_diriter_type.tp_iternext = (iternextfunc)fslib_diriter_next;
     if (PyType_Ready(&fslib_diriter_type) < 0) {
         return;
     }