Armin Rigo  committed 814e935

A clean up, now that the rule has been fixed: NULL pointers should not
be inside <cdata> boxes (unless you explicitly force it with ffi.cast()).

  • Participants
  • Parent commits 0144cb6

Comments (0)

Files changed (1)

File demo/

     if not dirname.endswith('/'):
         dirname += '/'
     dirp = lib.opendir(dir)
-    if dirp == None:
+    if dirp is None:
         raise _posix_error()
         while True:
             ffi.errno = 0
             dirent = lib.readdir(dirp)
-            if dirent == None:
+            if dirent is None:
                 if ffi.errno != 0:
                     raise _posix_error()